/* Tokenomics Section Styles */
.valuation-card {
  background: var(--bg-alt);
  border: 1px solid rgba(158, 209, 178, 0.1);
  border-radius: 12px;
  padding: 20px 25px;
  transition: var(--transition);
}

.valuation-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.valuation-label {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.valuation-value {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.table-container {
  background: var(--bg-alt);
  border: 1px solid rgba(158, 209, 178, 0.1);
  border-radius: 16px;
  padding: 25px;
  transition: var(--transition);
}

.table-container:hover {
  border-color: var(--accent);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.token-table {
  width: 100%;
  border-collapse: collapse;
}

.token-table th {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 10px;
  border-bottom: 2px solid rgba(158, 209, 178, 0.2);
}

.token-table td {
  color: var(--text-main);
  padding: 12px 10px;
  border-bottom: 1px solid rgba(158, 209, 178, 0.1);
}

.token-table tbody tr:hover {
  background: rgba(158, 209, 178, 0.05);
}

.round-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.round-badge.seed {
  background: rgba(158, 209, 178, 0.15);
  color: var(--accent);
  border: 1px solid rgba(158, 209, 178, 0.3);
}

.round-badge.strategic {
  background: rgba(120, 169, 138, 0.15);
  color: #78a98a;
  border: 1px solid rgba(120, 169, 138, 0.3);
}

.round-badge.private {
  background: rgba(35, 78, 59, 0.15);
  color: #234e3b;
  border: 1px solid rgba(35, 78, 59, 0.3);
}

.total-row {
  background: rgba(158, 209, 178, 0.05);
  font-weight: 600;
}

.total-row td {
  color: var(--accent);
  border-bottom: none;
}

.distribution-card {
  background: var(--bg-alt);
  border: 1px solid rgba(158, 209, 178, 0.1);
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  transition: var(--transition);
}

.distribution-card:hover {
  border-color: var(--accent);
}

.distribution-title {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.distribution-item {
  margin-bottom: 20px;
}

.distribution-label {
  color: var(--text-main);
  font-size: 0.95rem;
}

.distribution-percentage {
  color: var(--accent);
  font-weight: 600;
}

.distribution-progress {
  height: 8px;
  background: rgba(158, 209, 178, 0.1);
  border-radius: 4px;
  margin-bottom: 5px;
}

.distribution-progress .progress-bar {
  border-radius: 4px;
}

.distribution-progress .progress-bar.ecosystem {
  background: linear-gradient(90deg, #9ed1b2, #b8e0c6);
}
.distribution-progress .progress-bar.public-sale {
  background: linear-gradient(90deg, #78a98a, #9ed1b2);
}
.distribution-progress .progress-bar.marketing {
  background: linear-gradient(90deg, #234e3b, #78a98a);
}
.distribution-progress .progress-bar.seed-round {
  background: linear-gradient(90deg, #1a3a2c, #234e3b);
}
.distribution-progress .progress-bar.development {
  background: linear-gradient(90deg, #0f2b20, #1a3a2c);
}
.distribution-progress .progress-bar.partners {
  background: linear-gradient(90deg, #052015, #0f2b20);
}

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

.chart-card {
  background: var(--bg-alt);
  border: 1px solid rgba(158, 209, 178, 0.1);
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  transition: var(--transition);
}

.chart-card:hover {
  border-color: var(--accent);
}

.donut-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.donut-chart {
  width: 200px;
  height: 200px;
  position: relative;
}

.donut {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-ring {
  stroke: rgba(158, 209, 178, 0.1);
}

.donut-segment {
  transition: stroke-dashoffset 0.5s ease;
}

.donut-segment.ecosystem {
  stroke: #9ed1b2;
}
.donut-segment.public-sale {
  stroke: #78a98a;
}
.donut-segment.marketing {
  stroke: #234e3b;
}
.donut-segment.seed-round {
  stroke: #1a3a2c;
}
.donut-segment.development {
  stroke: #0f2b20;
}
.donut-segment.partners {
  stroke: #052015;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.ecosystem {
  background: #9ed1b2;
}
.legend-color.public-sale {
  background: #78a98a;
}
.legend-color.marketing {
  background: #234e3b;
}
.legend-color.seed-round {
  background: #1a3a2c;
}
.legend-color.development {
  background: #0f2b20;
}
.legend-color.partners {
  background: #052015;
}

.legend-label {
  color: var(--text-main);
  font-size: 0.9rem;
}

.detailed-table td:first-child {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .valuation-value {
    font-size: 1.2rem;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .legend-grid {
    grid-template-columns: 1fr;
  }

  .donut-chart {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 576px) {
  .token-table {
    font-size: 0.85rem;
  }

  .token-table th,
  .token-table td {
    padding: 10px 5px;
  }

  .round-badge {
    padding: 2px 8px;
    font-size: 0.75rem;
  }
}

/* Enhanced Allocation Overview Styles */
.allocation-card {
  background: linear-gradient(145deg, var(--bg-alt), #0c1f18);
  border: 1px solid rgba(158, 209, 178, 0.15);
  border-radius: 24px;
  padding: 30px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.allocation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(158, 209, 178, 0.03),
    transparent
  );
  transition: left 0.7s ease;
}

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

.allocation-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(158, 209, 178, 0.15);
}

.allocation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.allocation-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.allocation-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 5px 0 0;
  line-height: 1.2;
}

.text-accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.text-accent::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.allocation-card:hover .text-accent::after {
  transform: scaleX(1);
  transform-origin: left;
}

.allocation-badge {
  background: rgba(158, 209, 178, 0.1);
  border: 1px solid rgba(158, 209, 178, 0.2);
  border-radius: 30px;
  padding: 8px 16px;
}

.badge-pulse {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.chart-main-container {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.chart-wrapper {
  flex: 2;
  min-width: 250px;
  position: relative;
}

.donut-container {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.donut-3d {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease;
}

.donut-3d:hover {
  filter: drop-shadow(0 15px 30px rgba(158, 209, 178, 0.3));
}

.donut-ring-bg {
  stroke: rgba(158, 209, 178, 0.1);
}

.donut-segment {
  transition:
    stroke 0.3s ease,
    filter 0.3s ease;
  cursor: pointer;
}

.donut-segment-group {
  transition: transform 0.3s ease;
}

.donut-segment-group:hover {
  transform: scale(1.02);
  filter: brightness(1.2);
}

.floating-badge {
  position: absolute;
  background: var(--bg-alt);
  border: 2px solid;
  border-radius: 40px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.floating-badge .badge-value {
  font-weight: 800;
  font-size: 1.1rem;
}

.floating-badge .badge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ecosystem-badge {
  top: 15%;
  right: 10%;
  border-color: #9ed1b2;
  animation-delay: 0s;
}

.public-badge {
  bottom: 20%;
  left: 5%;
  border-color: #78a98a;
  animation-delay: 0.5s;
}

.marketing-badge {
  top: 50%;
  right: 0;
  border-color: #5a8f6e;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.metrics-panel {
  flex: 1;
  min-width: 180px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(158, 209, 178, 0.1);
  backdrop-filter: blur(10px);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(158, 209, 178, 0.1);
  transition: transform 0.3s ease;
}

.metric-item:hover {
  transform: translateX(10px);
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-icon {
  width: 40px;
  height: 40px;
  background: rgba(158, 209, 178, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.metric-item:hover .metric-icon {
  background: var(--accent);
  color: var(--bg-main);
  transform: rotate(360deg);
}

.metric-content {
  flex: 1;
}

.metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.metric-value {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
}

.metric-value small {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: normal;
}

.legend-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(158, 209, 178, 0.1);
}

.legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.legend-header h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
}

.legend-switcher {
  display: flex;
  gap: 5px;
  background: rgba(158, 209, 178, 0.1);
  border-radius: 8px;
  padding: 3px;
}

.switcher-option {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.switcher-option.active {
  background: var(--accent);
  color: var(--bg-main);
}

.legend-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.legend-card {
  background: rgba(158, 209, 178, 0.03);
  border: 1px solid rgba(158, 209, 178, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.legend-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(158, 209, 178, 0.08);
}

.legend-card.ecosystem:hover {
  border-color: #9ed1b2;
}
.legend-card.public-sale:hover {
  border-color: #78a98a;
}
.legend-card.marketing:hover {
  border-color: #5a8f6e;
}

.legend-card-inner {
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.legend-color-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: width 0.3s ease;
}

.legend-card:hover .legend-color-bar {
  width: 8px;
}

.legend-color-bar.ecosystem {
  background: #9ed1b2;
}
.legend-color-bar.public-sale {
  background: #78a98a;
}
.legend-color-bar.marketing {
  background: #5a8f6e;
}
.legend-color-bar.seed-round {
  background: #3d6b4f;
}
.legend-color-bar.development {
  background: #234e3b;
}
.legend-color-bar.partners {
  background: #0f2f20;
}

.legend-content {
  margin-left: 8px;
}

.legend-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.legend-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.legend-value {
  font-weight: 700;
  color: var(--text-muted);
}

.legend-value.primary {
  color: var(--accent);
  font-size: 1.1rem;
}

.legend-detail {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.detail-item i {
  color: var(--accent);
  font-size: 0.8rem;
}

.detail-amount {
  color: var(--text-main);
  font-weight: 500;
}

.detail-price {
  color: var(--text-main);
  font-weight: 500;
}

.legend-progress {
  height: 4px;
  background: rgba(158, 209, 178, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

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

.progress-fill.ecosystem {
  background: #9ed1b2;
}
.progress-fill.public-sale {
  background: #78a98a;
}
.progress-fill.marketing {
  background: #5a8f6e;
}
.progress-fill.seed-round {
  background: #3d6b4f;
}
.progress-fill.development {
  background: #234e3b;
}
.progress-fill.partners {
  background: #0f2f20;
}

@media (max-width: 992px) {
  .legend-grid-enhanced {
    grid-template-columns: 1fr;
  }

  .allocation-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .chart-main-container {
    flex-direction: column;
  }

  .floating-badge {
    padding: 4px 10px;
  }

  .floating-badge .badge-value {
    font-size: 0.9rem;
  }

  .allocation-title {
    font-size: 1.5rem;
  }
}
