@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;900&display=swap');

:root {
    --bg-primary: #0b0d13;
    --bg-secondary: #292D39;
    --bg-card: #292D39;
    --text-primary: #ffffff;
    --text-secondary: #a0a6b3;
    --text-muted: #6b7280;
    --accent-blue: #06b6d4;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-purple: #8c3dff;
    --accent-pink: #ff3db8;
    --border-color: #2a2d36;
    --gradient-primary: linear-gradient(135deg, #3CD6F8, #8c3dff);
    --gradient-secondary: linear-gradient(270deg, #3CD6F8, #8c3dff, #1f68ff);
    --bg: #292D39;
    --text: #e5e7eb;
    --muted: #b7bec9;
    --accent: #2ed0ff;
    --card: #1b1f28;
    --pink: #ff3db8;
    --purple: #b74fff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: driftGrid 60s ease-in-out infinite;
}

@keyframes driftGrid {
    0% { background-position: 0 0, 0 0; }
    50% { background-position: 20px 40px, 40px 20px; }
    100% { background-position: 0 0, 0 0; }
}

/* Header */
.header {
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: relative;
    top: 0;
    /* z-index: 1000; */
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-blue);
}

.logo i {
    font-size: 28px;
    animation: pulse 2s infinite;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    font-size: 14px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-connected { background: var(--accent-green); }
.status-connecting { background: #fbbf24; }
.status-disconnected { background: var(--accent-red); }

.header-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
}

.positive { color: var(--accent-green); }
.negative { color: var(--accent-red); }

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.main-title {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 25px;
    padding: 8px 16px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--accent-green);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Large Desktop - maintain horizontal layout */
@media (min-width: 1200px) {
    .filters {
        flex-wrap: nowrap;
        gap: 30px;
    }
    
    .search-box {
        max-width: 350px;
    }
}

/* Medium screens - adjust spacing */
@media (max-width: 1199px) and (min-width: 769px) {
    .filters {
        gap: 15px;
    }
    
    .filter-tabs {
        flex: 1;
        justify-content: flex-start;
    }
    
    .search-box {
        min-width: 200px;
        max-width: 280px;
    }
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab.active,
.tab:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    flex: 0 0 auto;
    min-width: 250px;
    max-width: 400px;
}

.search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 12px 20px 12px 45px;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    min-width: 250px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Crypto Table */
.crypto-table {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.table-header {
    background: var(--bg-card);
    padding: 20px;
    display: grid;
    grid-template-columns: 50px 1fr 120px 120px 120px 120px 80px;
    gap: 15px;
    align-items: center;
    font-weight: 600;
    color: var(--text-secondary);

    /* 🔹 Transparent border + rounded edges */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;

    /* 🔹 Soft shadow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    margin: 10px;
    backdrop-filter: blur(6px); /* optional glass effect */
}

.crypto-row {
    padding: 20px;
    display: grid;
    grid-template-columns: 50px 1fr 120px 120px 120px 120px 80px;
    gap: 15px;
    align-items: center;

    /* 🔹 Thin subtle bottom border */
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);

    transition: all 0.3s ease;
    cursor: pointer;
    animation: slideInLeft 0.6s ease-out both;
}
.crypto-row:hover {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.crypto-row:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateX(5px);
}

.crypto-rank {
    color: var(--text-muted);
    font-weight: 600;
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.crypto-name {
    display: flex;
    flex-direction: column;
}

.crypto-symbol {
    font-weight: 700;
    font-size: 16px;
}

.crypto-full-name {
    font-size: 12px;
    color: var(--text-muted);
}

.price {
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.change-24h {
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.volume-24h {
    color: var(--text-secondary);
    font-size: 14px;
}

.action-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(140, 61, 255, 0.4);
}

/* Price Animation Effects */
.price-up {
    color: var(--accent-green) !important;
    animation: priceFlashUp 1s ease-out;
}

.price-down {
    color: var(--accent-red) !important;
    animation: priceFlashDown 1s ease-out;
}

@keyframes priceFlashUp {
    0% { 
        background-color: rgba(16, 185, 129, 0.3); 
        transform: scale(1.05);
    }
    100% { 
        background-color: transparent; 
        transform: scale(1);
    }
}

@keyframes priceFlashDown {
    0% { 
        background-color: rgba(239, 68, 68, 0.3); 
        transform: scale(1.05);
    }
    100% { 
        background-color: transparent; 
        transform: scale(1);
    }
}

/* Loading states */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Live update indicator */
.last-updated {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
}

.update-time {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .table-header,
    .crypto-row {
        grid-template-columns: 40px 1fr 100px 100px 100px 60px;
        gap: 10px;
    }
    
    .volume-24h {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .search-box {
        order: 2; /* Place search bar after filter tabs */
        min-width: unset;
        max-width: unset;
    }
    
    .search-input {
        width: 100%;
        min-width: unset;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 20px 14px 45px;
    }
    
    .filter-tabs {
        order: 1;
        justify-content: center;
    }
    
    /* Table layout is handled by the mobile optimization section below */
    
    .crypto-rank {
        display: none;
    }
    
    .header-stats {
        display: none;
    }
}

/* Special effects for top movers */
.top-gainer {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.top-loser {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* WebSocket connection indicator */
.ws-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 12px;
    z-index: 1000;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}
/* navigation starts here  */
    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: rgba(13, 13, 18, 0.95);
      /* dark translucent */
      color: white;
      padding: 10px 20px;
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .nav-cont {
      display: flex;
      align-items: center;
      justify-content: space-evenly;
    }

    .logo {
      font-size: 20px;
      font-weight: bold;
    }

    .brand-logo {
      width: 40px;
      height: 43px;
    }

    .brand {
      display: flex;
      align-items: center;
    }

    .brand-name {
      color: #fff;
      text-decoration: none;
    }

    .nav-links {
      display: flex;
      gap: 75px;
    }

    .nav-links a:hover {
      color: #06b6d4;
      /* cyan highlight on hover */
      transition: 1s;
    }

    .btn-outline:hover {
      background-color: #06b6d4;
      /* cyan highlight on hover */
      transition: 1s;
    }

    .menu-toggle:hover {
      color: #06b6d4;
      /* cyan highlight on hover */
      transition: 1s;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
    }

    .btn-outline {
      background: none;
      color: white;
      border: 1px solid white;
      padding: 5px 10px;
      cursor: pointer;
      border-radius: 10px;
    }
    /* navbar 2 mobile  */
      .nav-2 {
        display: none;
      }

    /* Hamburger menu - hidden on desktop */
    .menu-toggle {
      display: none;
      font-size: 24px;
      cursor: pointer;
    }

    /* Nabar 2 */
    .nav-2 {
      margin-top: 8px;
      padding: 12px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      background-color: rgb(41, 44, 53);
      position: sticky;
      top: 60px;
      z-index: 1000;

    }

    .nav-2-links a {
      color: #06b6d4;
    }

    /* Mobile Styles */
    @media (max-width: 768px) {
      .nav-links {
        display: flex;
        gap: 20px;
        flex-direction: column;
        position: absolute;
        top: 60px;
        /* below the navbar */
        left: 0;
        width: 100%;
        background-color: rgba(13, 13, 18, 0.95);
        /* dark translucent */
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease-in-out;
      }

      /* navbar 2 mobile  */
      .nav-2 {
        display: none;
      }

      .nav-links.show {
        max-height: 500px;
        /* adjust for number of links */
      }

      .nav-links a {
        padding: 10px 5px;
        border-bottom: 1px solid #555;
      }

      .btn-outline {
        display: none;
        /* hide register button on mobile */
      }

      .menu-toggle {
        display: block;
      }
    }

    /* navigation ends here  */
    /* Accent lines & dot */
    .accent-line {
      position: absolute;
      height: 4px;
      border-radius: 2px;
      animation: pulse 0.5s infinite ease-in-out;
      margin-top: 100px;
    }

    .accent-line.a {
      width: 42px;
      top: 14px;
      left: 14px;
      background: var(--pink);
    }

    .accent-line.b {
      width: 72px;
      top: 34px;
      left: 0;
      background: var(--purple);
    }

    .accent-dot {
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--pink);
      top: 86px;
      left: 20px;
      animation: blink 1.8s infinite ease-in-out;
      margin-top: 80px;
    }

    .accent-line,
    .accent-dot {
      position: absolute;
      left: 0;
      /* default */
    }

    .accent-line.right,
    .accent-dot.right {
      left: auto;
      right: 0;
      /* push to right */
    }
    .grid-background,
    .accent-line,
    .accent-dot,
    .accent-bottom {
      pointer-events: none;
      /* don’t capture clicks */
      z-index: 0;
      /* keep them behind */
    }
    .accent-line {
  position: absolute;
  height: 4px;
  border-radius: 2px;
  animation: pulse 3s infinite ease-out;
}
 .title {
      font-size: 56px;
      line-height: 56px;
      letter-spacing: 0;
      font-variant-numeric: lining-nums proportional-nums;
      margin: 6px 0 16px;
      white-space: nowrap;
      align-items: center;
      justify-items: center;
      justify-content: center;
      align-content: center;
      align-items: center;
    }

    .title .strong {
      font-weight: 900;
      color: var(--accent);
    }

    .title .light {
      font-weight: 400;
      color: var(--text);
    }
    @media (max-width: 860px) {
      .title {
        font-size: clamp(30px, 8vw, 56px);
        line-height: 1.0;
      }
      .title .strong,
  .title .light {
    display: inline !important;
    white-space: normal !important;
  }

/* Extra mobile fixes */
/* Mobile improvements */
@media (max-width: 768px) {
  .nav-cont{
    margin-top: 10px;
  }
    /* Enhanced search bar for mobile */
    .search-box {
        width: 100%;
        margin: 0;
    }
    
    .search-input {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        background: rgba(41, 45, 57, 0.8);
        backdrop-filter: blur(10px);
        border: 1.5px solid rgba(6, 182, 212, 0.3);
    }
    
    .search-input:focus {
        border-color: var(--accent-blue);
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
        background: var(--bg-card);
    }
    
    .search-icon {
        left: 12px;
        font-size: 16px;
        color: var(--accent-blue);
    }

    /* Make filter tabs wrap nicely */
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .tab {
        flex: 1 1 auto;
        text-align: center;
        min-width: 100px;
    }

    /* This section is now handled by the mobile table optimization below */

    /* Make header labels wrap if needed */
    .table-header div {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Adjust crypto info for mobile */
    .crypto-info {
        flex-direction: row;
        gap: 8px;
    }
    .crypto-name .crypto-full-name {
        font-size: 11px;
    }
}
/* Mobile table optimization for better alignment */
@media (max-width: 768px) {
  .navbar{
    height: 70px;
  }
  
  /* Make table container horizontally scrollable to prevent content cutoff */
  .crypto-table {
    overflow-x: auto;
    margin: 0 -10px; /* Extend to screen edges */
    border-radius: 12px;
  }
  
  /* Hide less important columns on mobile */
  .table-header div:nth-child(1), /* # */
  .table-header div:nth-child(5), /* 24h High */
  .table-header div:nth-child(6), /* 24h Volume */
  .table-header div:nth-child(7)  /* Action */ {
      display: none;
  }

  .crypto-row div:nth-child(1),  /* # */
  .crypto-row div:nth-child(5),  /* 24h High */
  .crypto-row div:nth-child(6),  /* 24h Volume */
  .crypto-row div:nth-child(7)   /* Action */ {
      display: none;
  }

  /* Optimize grid for mobile - Name, Price, 24h Change */
  .table-header,
  .crypto-row {
      grid-template-columns: 1fr 110px 110px;
      gap: 12px;
      padding: 15px 12px;
      min-width: 350px; /* Ensure minimum width for proper display */
  }
  
  /* Optimize header text for mobile */
  .table-header div {
      font-size: 13px;
      font-weight: 600;
      text-align: center;
  }
  
  .table-header div:nth-child(2) { /* Name column */
      text-align: left;
  }
  
  /* Additional mobile improvements for crypto info */
  .crypto-info {
      gap: 8px;
  }
  
  .crypto-icon {
      width: 28px;
      height: 28px;
  }
  
  .crypto-symbol {
      font-size: 14px;
      font-weight: 700;
  }
  
  .crypto-full-name {
      display: none; /* Hide full name on very small screens */
  }
  
  .price {
      font-size: 15px;
      font-weight: 700;
      text-align: center;
  }
  
  .change-24h {
      font-size: 14px;
      font-weight: 600;
      text-align: center;
  }
}

/* iPhone 12 Pro and similar screen optimization */
@media (max-width: 430px) and (min-width: 360px) {
  .crypto-table {
    margin: 0 -5px;
  }
  
  .table-header,
  .crypto-row {
      grid-template-columns: 1fr 95px 95px;
      gap: 10px;
      padding: 12px 8px;
      min-width: 320px;
  }
  
  .crypto-symbol {
      font-size: 13px;
  }
  
  .price {
      font-size: 14px;
  }
  
  .change-24h {
      font-size: 13px;
  }
  
  /* Search bar optimization for iPhone 12 Pro */
  .search-input {
      padding: 12px 18px 12px 40px;
      font-size: 16px;
      border-radius: 18px;
  }
  
  .search-icon {
      left: 10px;
      font-size: 15px;
  }
  
  .filters {
      gap: 12px;
      margin-bottom: 20px;
  }
  
  .filter-tabs {
      gap: 6px;
  }
  
  .tab {
      padding: 8px 14px;
      font-size: 13px;
      min-width: 70px;
  }
}

/* Extra small screens optimization */
@media (max-width: 359px) {
  .search-input {
      padding: 10px 15px 10px 35px;
      font-size: 16px;
      border-radius: 16px;
  }
  
  .search-icon {
      left: 8px;
      font-size: 14px;
  }
  
  .filters {
      gap: 10px;
      margin-bottom: 18px;
  }
  
  .filter-tabs {
      gap: 4px;
  }
  
  .tab {
      padding: 6px 10px;
      font-size: 12px;
      min-width: 60px;
      flex: 1;
  }
}

/* box adding on to testing */
/* ====== Highlights cards ====== */
.crypto-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 18px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}
.highlight-card:hover {
  transform: translateY(-4px);
}

.highlight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.highlight-header .icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(6,182,212,.12);
  color: var(--accent-blue);
}
.highlight-header .title {
  font-weight: 700;
  color: #fff;
  flex: 1;
}
.highlight-header .more-link {
  font-size: 12px;
  color: var(--accent-blue);
  text-decoration: none;
}
.highlight-header .more-link:hover {
  text-decoration: underline;
}

.highlight-list {
  margin: 10px 0 0;
  padding-left: 22px;
  list-style: decimal-leading-zero;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 160px;
  overflow: auto;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.highlight-item .coin {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.highlight-item img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.highlight-item .coin-symbol {
  font-weight: 700;
  color: #fff;
}
.highlight-item .coin-name {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.highlight-item .tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.tag.up { color: var(--accent-green); }
.tag.down { color: var(--accent-red); }

.follow-btn {
  margin-left: auto;
  font-size: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.follow-btn:hover {
  transform: translateY(-1px);
}

.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3f4d;
}
.dots span:nth-child(2) { opacity: .6; }
.dots span:nth-child(3) { opacity: .3; }

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .crypto-highlights { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .crypto-highlights { 
    grid-template-columns: 1fr; 
    gap: 16px;
    margin: 16px 0;
  }
  .highlight-list { 
    max-height: none; 
  }
  .highlight-card {
    padding: 12px;
  }
}
}

/* ====== Cryptocurrency Icon Fallback Styles ====== */
.crypto-icon-letter-fallback {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.crypto-icon-letter-fallback:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Enhanced crypto icon styles */
.crypto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-icon:hover {
    transform: scale(1.05);
    border-color: var(--accent-blue);
}

/* Fallback badge styles for different contexts */
.highlight-item .crypto-icon-letter-fallback {
    width: 24px;
    height: 24px;
}

.crypto-row .crypto-icon-letter-fallback {
    width: 32px;
    height: 32px;
}

/* Loading state for icons */
.crypto-icon[src=""] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Error state styling */
.crypto-icon[data-error="true"] {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
}

/* Animation for icon loading */
@keyframes iconPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.crypto-icon.loading {
    animation: iconPulse 1.5s ease-in-out infinite;
}

/* Responsive adjustments for fallback icons */
@media (max-width: 768px) {
    .crypto-icon-letter-fallback {
        width: 28px;
        height: 28px;
    }
    
    .highlight-item .crypto-icon-letter-fallback {
        width: 20px;
        height: 20px;
    }
}

/* End of CSS file */
