* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #000;
  color: #ffffff;
  min-height: 100vh;
}

.logo img {
    height: 32px;
    width: auto;
}

@media (max-width: 768px) {
    .logo img {
        height: 24px;
    }
}

/* Header */
.header {
  background: linear-gradient(135deg, #1a1f2e, #000);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2f3e;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo h1 {
  background: linear-gradient(45deg, #00d4ff, #9945ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  font-weight: bold;
}

.social-buttons {
  display: flex;
  gap: 10px;
}

.social-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 5px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 80px;
}

.main-content {
  width: 100%;
}

/* Tabs */
.tabs {
    position: fixed;
    bottom: 0;
    z-index: 100;
    margin-bottom: 0;
    border-radius: 0;
    background: rgba(18, 20, 24, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #2a2f3e;
    padding: 8px;
    display: flex;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(145deg, #2a2f3e, #1a1d24);
    color: #8b8fa3;
    border: 1px solid #3a3f4e;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    
    /* THÊM iOS fixes vào đây */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    pointer-events: auto;
}

.tab-btn * {
    pointer-events: none !important;
}

.tab-btn:hover:not(.active) {
    background: linear-gradient(145deg, #3a3f4e, #2a2f3e);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tab-btn:active:not(.active) {
    transform: translateY(1px);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tab-btn.active {
    background: linear-gradient(145deg, #3d3416, #2b2412);
    color: #ffca00;
    border-color: #ffca00;
    transform: translateY(1px);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 12px rgba(255, 202, 0, 0.3),
        inset 0 0 8px rgba(255, 202, 0, 0.1);
    text-shadow: 
        0 0 8px rgba(255, 202, 0, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffca00, transparent);
    border-radius: 8px 8px 0 0;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Token Grid */
.token-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

/* Token Card */
.token-card {
  background: linear-gradient(145deg, #000, #242938);
  border: 1px solid #2a2f3e;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding-top: 12px;
}

.token-card:hover {
  border-color: #484949;
}

.token-card.selected {
  border-color: #9945ff;
  box-shadow: 0 8px 32px rgba(153, 69, 255, 0.3);
}

/* Buy/Sell colors */
.buy-count {
    color: #00ff88;
    font-weight: bold;
}

.sell-count {
    color: #ff4444;
    font-weight: bold;
}

.dev-buy {
    color: #ffd700 !important;
    font-weight: bold;
}

/* Labels */
.token-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-hot {
  background: linear-gradient(45deg, #ff4500, #ff6b35, #ff8c00);
  color: #000;
  animation: hotPulse 1.5s infinite, hotGlow 2s infinite alternate;
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.8);
  border: 1px solid #ff6b35;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

/* Animation cho HOT label */
@keyframes hotPulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1.05);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.1);
  }
}

@keyframes hotGlow {
  0% { 
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.8), 0 0 25px rgba(255, 140, 0, 0.4);
  }
  100% { 
    box-shadow: 0 0 25px rgba(255, 69, 0, 1), 0 0 35px rgba(255, 140, 0, 0.8);
  }
}

.label-scam {
  background: #666;
  color: #ddd;
}

.label-moon {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
  animation: glow 2s infinite alternate;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

/* Token Age */
.token-age {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #8b8fa3;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Token Header */
.token-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.token-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #777;
  flex-shrink: 0;
}

.token-image img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.token-info {
  flex: 1;
  min-width: 0;
}

.token-info h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  line-height: 1.2;
}

.token-symbol {
  color: #8b8fa3;
  font-size: 14px;
  margin-bottom: 6px;
}

/* Creator Info */
.creator-info {
  font-size: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.3;
}

.creator-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-label {
  color: #8b8fa3;
  font-weight: 500;
}

.creator-name {
  color: #00d4ff;
  font-weight: 600;
  text-decoration: none;
}

.creator-name:hover {
  text-decoration: underline;
}

.cast-link {
  color: #00d4ff;
  text-decoration: none;
  font-size: 12px;
}

.cast-link:hover {
  text-decoration: underline;
}

/* Token Stats - 1 hàng trên tất cả thiết bị */
.token-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.stat-item {
  background: rgba(42, 47, 62, 0.5);
  padding: 6px 4px;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #8b8fa3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value {
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.positive {
  color: #00ff88;
}

.negative {
  color: #ff4444;
}

/* Price Change Animation */
.price-flash-green {
  animation: flashGreen 0.6s ease-in-out;
}

.price-flash-red {
  animation: flashRed 0.6s ease-in-out;
}

@keyframes flashGreen {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(0, 255, 136, 0.3); }
}

@keyframes flashRed {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(255, 68, 68, 0.3); }
}

/* Social Buttons */
.token-socials {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Desktop Chart Popup */
.chart-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.chart-popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: #1a1f2e;
  border: 1px solid #2a2f3e;
  border-radius: 16px;
  width: 90%;
  height: 80%;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.popup-header {
  background: #242938;
  padding: 15px 20px;
  border-bottom: 1px solid #2a2f3e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
}

.popup-close {
  background: #ff4444;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: #ff6666;
}

.popup-iframe {
  width: 100%;
  height: calc(100% - 60px);
  border: none;
}

/* Mobile Chart */
.mobile-chart {
  display: none;
  margin: 2px;
  background: #1a1f2e;
  border: 1px solid #2a2f3e;
  border-radius: 2px;
  height: 400px;
  position: relative;
  overflow: hidden;
  width: calc(100% - 4px);
}

.mobile-chart.active {
  display: block;
}

.mobile-chart iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.mobile-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 68, 68, 0.9);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 25%;
  cursor: pointer;
  z-index: 10;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-close-btn:hover {
  background: rgba(255, 68, 68, 1);
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: #8b8fa3;
  font-size: 16px;
}

/* Interface Info */
.interface-info {
  font-size: 11px;
  color: #8b8fa3;
  margin-top: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding-bottom: 70px;
    }
    
    .tabs {
        padding: 8px 4px;
        left: 0;
        right: 0;
        width: auto;
        transform: none;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

  .token-card {
      padding: 12px;
      padding-top: 24px;
  }

  .token-header {
      margin-bottom: 8px;
      gap: 10px;
  }

  .token-image {
      width: 60px;
      height: 60px;
      font-size: 12px;
  }

  .token-info h3 {
      font-size: 14px;
      margin-bottom: 2px;
  }

  .token-symbol {
      font-size: 12px;
      margin-bottom: 4px;
  }

  .creator-info {
      font-size: 11px;
  }

    .token-stats {
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
        margin-bottom: 8px;
    }
}

  .stat-item {
      padding: 4px 2px;
  }

  .stat-label {
      font-size: 10px;
  }

  .stat-value {
      font-size: 11px;
  }

  .token-socials {
      justify-content: right;
      gap: 4px;
  }

  .social-icon {
      width: 28px;
      height: 28px;
  }

  .social-text {
      display: none;
  }

  .logo h1 {
      font-size: 20px;
  }

  .header {
      padding: 10px;
  }

  .chart-popup {
      display: none !important;
  }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
  .token-card {
      padding: 10px;
      padding-top: 22px;
  }

  .token-header {
      gap: 8px;
      margin-bottom: 6px;
  }

  .token-image {
      width: 50px;
      height: 50px;
      font-size: 12px;
  }

  .token-info h3 {
      font-size: 13px;
      margin-bottom: 2px;
  }

  .token-symbol {
      font-size: 11px;
      margin-bottom: 3px;
  }

  .creator-info {
      font-size: 12px;
      gap: 2px;
  }

  .creator-avatar {
      width: 14px;
      height: 14px;
  }

    .token-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
        margin-bottom: 6px;
    }
}

  .stat-item {
      padding: 3px 1px;
  }

  .stat-label {
      font-size: 10px;
  }

  .stat-value {
      font-size: 12px;
  }

  .token-socials {
      gap: 3px;
  }

  .social-icon {
      width: 50px;
      height: 24px;
  }

  .token-age {
      top: 6px;
      right: 6px;
      padding: 3px 6px;
      font-size: 12px;
  }

  .token-label {
      top: 6px;
      left: 6px;
      padding: 3px 6px;
      font-size: 9px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .container {
      padding: 8px;
  }

  .token-grid {
      gap: 7px;
  }

  .token-card {
      padding: 8px;
      padding-top: 20px;
  }

  .stat-item {
      padding: 2px 1px;
  }

  .stat-label {
      font-size: 8px;
  }

  .stat-value {
      font-size: 9px;
  }
}

/* Desktop layout */
@media (min-width: 769px) {
    .main-content {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        transition: all 0.3s ease; /* Smooth animation */
        max-width: 900px; /* Mặc định */
        margin: 0 auto;
    }

    .main-content.chart-open {
        max-width: 1650px;
    }
    
    .tokens-section {
        flex: 1;
        min-width: 0;
    }
    
    .chart-sidebar {
        width: 70%;
        position: sticky;
        top: 20px;
        height: calc(100vh - 120px);
        background: linear-gradient(145deg, #000, #242938);
        border: 1px solid #2a2f3e;
        border-radius: 1px;
        overflow: hidden;
        display: none;
    }
    
    .chart-sidebar.active {
        display: block;
    }
    
    .chart-sidebar iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
    
    .chart-header {
        background: #242938;
        padding: 10px;
        border-bottom: 1px solid #2a2f3e;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .chart-title {
        color: #ffffff;
        font-size: 16px;
        font-weight: bold;
    }
    
    .chart-close {
        background: #ad3333;
        color: white;
        border: none;
        width: 28px;
        height: 28px;
        border-radius: 5%;
        cursor: pointer;
        font-size: 16px;
    }
}

.new-token-glow {
    animation: subtleGlow 5s ease-in-out;
}

@media (min-width: 769px) {
    .tabs {
        left: 50%;
        transform: translateX(-50%);
        width: 900px; /* Bằng main-content mặc định */
        max-width: calc(100vw - 40px);
    }
    
    /* Khi chart mở, tabs mở rộng theo */
    .main-content.chart-open + .tabs,
    body:has(.main-content.chart-open) .tabs {
        width: 1650px; /* Bằng main-content khi chart-open */
    }
}

@keyframes subtleGlow {
    0%, 100% { 
        border-color: #2a2f3e;
        box-shadow: none;
    }
    50% { 
        border-color: #00ff88;
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    }
}

/* Price change animations (giữ nguyên) */
.price-flash-green {
    animation: flashGreen 0.6s ease-in-out;
}

.price-flash-red {
    animation: flashRed 0.6s ease-in-out;
}

@keyframes flashGreen {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(0, 255, 136, 0.3); }
}

@keyframes flashRed {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 68, 68, 0.3); }
}

/* Real-time indicators */
.realtime-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.realtime-indicator {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Force hide charts on mobile */
@media (max-width: 768px) {
    .chart-sidebar,
    .chart-popup,
    .popup-content {
        display: none !important;
        visibility: hidden !important;
    }
    
    .main-content.chart-open {
        max-width: 100% !important;
    }
}

/* Ensure mobile charts only show when explicitly activated */
.mobile-chart {
    display: none;
}

.mobile-chart.active {
    display: block;
}

.copy-ca-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Thêm border */
    cursor: pointer;
    border-radius: 6px; /* Thêm bo góc để đồng nhất với các social-icon khác */
    padding: 6px; /* Thêm padding để button có kích thước phù hợp */
    transition: all 0.3s ease; /* Thêm hiệu ứng chuyển đổi */
}

.copy-ca-btn:hover {
    border-color: rgba(255, 255, 255, 0.6); /* Border sáng hơn khi hover */
    background: #5a30a7bf; /* Thêm background nhẹ khi hover */
}

/* Chart */
.chart-sidebar #dexscreener-embed,
.mobile-chart #dexscreener-embed-mobile {
    height: 100%;
    border-radius: 0; /* Bỏ bo góc cho embed container */
}

.mobile-chart #dexscreener-embed-mobile iframe {
    border-radius: 0; /* Bỏ bo góc cho iframe bên trong */
}

/* Farcaster - giữ nguyên */
.buy-farcaster-btn {
    background: linear-gradient(45deg, #8B5CF6, #06B6D4) !important;
    color: white !important;
    font-weight: bold;
    border: 2px solid #8B5CF6 !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.buy-farcaster-btn:hover {
    border-color: #9945ff !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Mobile - thêm mới */
.buy-mobile-btn {
    color: white !important;
    font-weight: bold;
    border: 1px solid #8B5CF6 !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.buy-mobile-btn:hover {
    border-color: #9945ff !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* PC - tạo class riêng cho buy button */
.social-icon.buy-pc-btn {
    color: white !important;
    font-weight: bold;
    border: 1px solid #8B5CF6 !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-icon.buy-pc-btn:hover {
    border-color: #9945ff !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Wallet selector modal */
.wallet-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.wallet-selector-content {
    background: #1a1f2e;
    border: 1px solid #2a2f3e;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 0;
    overflow: hidden;
}

.wallet-selector-header {
    background: #242938;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2f3e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-selector-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.wallet-close-btn {
    background: #ad3333;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 25%;
    cursor: pointer;
    font-size: 26px;
}

.wallet-options {
    padding: 20px;
}

.wallet-option {
    width: 100%;
    background: rgba(42, 47, 62, 0.5);
    border: 1px solid #2a2f3e;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.wallet-option:hover {
    background: rgba(42, 47, 62, 0.8);
    border-color: #9945ff;
    transform: translateY(-2px);
}

.wallet-option:last-child {
    margin-bottom: 0;
}

.wallet-name {
    font-size: 16px;
    font-weight: 600;
}

.wallet-arrow {
    font-size: 18px;
    color: #9945ff;
}

@media (max-width: 480px) {
    .wallet-selector-content {
        width: 95%;
        margin: 20px;
    }
    
    .wallet-option {
        padding: 12px 15px;
    }
    
    .wallet-name {
        font-size: 14px;
    }
}

.tab-count {
   color: #ffca00;
   padding: 2px 6px;
   border-radius: 10px;
   font-size: 14px;
   font-weight: 700;
   margin-left: 4px;
   text-shadow: 
       0 0 8px rgba(255, 202, 0, 0.6),
       0 1px 2px rgba(0, 0, 0, 0.8);
   animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
   0% { 
       text-shadow: 
           0 0 8px rgba(255, 202, 0, 0.6),
           0 1px 2px rgba(0, 0, 0, 0.8);
   }
   100% { 
       text-shadow: 
           0 0 12px rgba(255, 202, 0, 0.8),
           0 0 20px rgba(255, 202, 0, 0.4),
           0 1px 2px rgba(0, 0, 0, 0.8);
   }
}

/* Token New */
.token-new-arrival {
    animation: newTokenEntrance 3s ease-out;
    position: relative;
    border-color: #9945ff !important;
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.5);
}

@keyframes newTokenEntrance {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
        box-shadow: 0 0 15px rgba(255, 202, 0, 1);
    }
    30% {
        transform: scale(1.05) translateY(-5px);
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(255, 202, 0, 1);
    }
    60% {
        transform: scale(1.02) translateY(0);
        opacity: 0.9;
        box-shadow: 0 0 12px rgba(255, 202, 0, 0.8);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        box-shadow: none;
    }
}

/* Dotted border elements */
.dotted-element {
    border: 1px dotted rgba(255, 255, 255, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin: 0 2px;
}

/* Copy FID button */
.copy-fid-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    margin-left: 2px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.copy-fid-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.copy-fid-btn svg {
    width: 12px !important;
    height: 12px !important;
}

/* Cast link styling inside dotted element */
.dotted-element .cast-link {
    color: #00d4ff;
    text-decoration: none;
    font-size: 12px;
}

.dotted-element .cast-link:hover {
    text-decoration: underline;
}

/* Copy button transitions */
.copy-ca-btn,
.copy-fid-btn {
    transition: all 0.2s ease;
}

.copy-ca-btn:active,
.copy-fid-btn:active {
    transform: scale(0.9);
}

/* Success state styling */
.copy-success-state {
    background: rgba(0, 255, 136, 0.8) !important;
    color: #000 !important;
    transform: scale(1.1) !important;
}

.admin-wallet-link {
    color: inherit;
    text-decoration: none;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px dotted rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.admin-wallet-link:hover {
    text-decoration: underline;
}

.buy-nlanker-btn {
    background: linear-gradient(145deg, #3d3416, #2b2412) !important;
    color: #ffca00 !important;
    border: 1px solid #ffca00 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 5px 5px !important;
    text-decoration: none !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 12px rgba(255, 202, 0, 0.3),
        inset 0 0 8px rgba(255, 202, 0, 0.1) !important;
    text-shadow: 
        0 0 8px rgba(255, 202, 0, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.3s ease;
    position: relative;
}

.buy-nlanker-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffca00, transparent);
    border-radius: 8px 8px 0 0;
}

.buy-nlanker-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 15px rgba(255, 202, 0, 0.5),
        inset 0 0 10px rgba(255, 202, 0, 0.15) !important;
}