/* 
   DGPuB - Dark Mode & Neon Accent Theme
   Colors: Dark Backgrounds, Blue/Purple Neons
   Fonts: Orbitron (Headings/Logo), Inter (Body)
*/

:root {
    --bg-dark: #0a0b14;
    /* Deep dark blue-black */
    --bg-card: #131520;
    --bg-card-hover: #1c1f2e;

    --primary: #00d2ff;
    /* Cyan Neon */
    --primary-glow: rgba(0, 210, 255, 0.4);

    --secondary: #9d4edd;
    /* Purple Neon */
    --secondary-glow: rgba(157, 78, 221, 0.4);

    --text-main: #ffffff;
    --text-muted: #8b9bb4;

    --border-color: #2a2d3d;

    --accent-success: #00ff9d;
    --accent-danger: #ff4d4d;

    --font-logo: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
    /* Hide default cursor for custom follower */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a,
button,
input {
    cursor: none;
    /* Ensure custom cursor works everywhere */
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(0, 210, 255, 0.2);
    border: 1px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    z-index: 9999;
    mix-blend-mode: screen;
}

.cursor-follower.active {
    width: 50px;
    height: 50px;
    background: var(--primary-glow);
    border-color: transparent;
}

/* Layout Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -29px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Hub */
.search-container {
    position: relative;
}

#global-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 8px 15px 8px 35px;
    /* Space for icon */
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 250px;
    color: #fff;
    font-size: 0.9rem;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#global-search:focus {
    width: 350px;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    outline: none;
}

.search-results-dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    /* Hidden by default */
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
}

.search-results-dropdown.show {
    display: block;
}

.search-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Wallet Button */
.btn-connect {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-connect:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 50px;
}

.sidebar-left {
    width: 20%;
    flex-shrink: 0;
}

.main-content {
    width: 55%;
    flex-grow: 1;
}

.sidebar-right {
    width: 25%;
    flex-shrink: 0;
}

/* Filter Section */
.filter-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.filter-section h3 {
    font-family: var(--font-logo);
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: 0.2s;
}

.checkbox-container:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.2);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 3px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Tool & Project Section */
.section-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tabs */
.tab-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 5px;
    position: relative;
    margin-bottom: 25px;
    width: fit-content;
}

.tab-switcher button {
    background: transparent;
    border: none;
    padding: 10px 25px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 2;
    transition: color 0.3s;
    position: relative;
}

.tab-switcher button.active {
    color: #fff;
}

/* Simple sliding effect logic will be handled by moving a background or simpler active class for now due to CSS complexity without known width. simpler is better for raw CSS */
.tab-switcher button.active {
    background: var(--bg-card);
    /* Fallback */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--primary);
    border: 1px solid rgba(0, 210, 255, 0.3);
}


/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Cards */
.card,
.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover,
.bot-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 210, 255, 0.15);
    background: var(--bg-card-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    background: #2a2d3d;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.tier-1 {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.card h3,
.bot-card h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.card p,
.bot-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* === Rich Search Dropdown (Premium) === */
.search-results-dropdown {
    top: 55px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 5px;
    z-index: 1000;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: var(--bg-card-hover);
}

.search-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.search-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.search-info p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-rank {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* === New Detail View Layout (Premium) === */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.5;
}

.analysis-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.analysis-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.analysis-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.analysis-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-section p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.metric-card h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.metric-value {
    color: #fff;
    font-weight: 600;
    font-family: monospace;
    font-size: 1rem;
}

/* Exchange List */
.exchange-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.exchange-row:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 5px;
    padding-right: 5px;
}

.exchange-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #fff;
}

.exchange-score {
    background: #f3ba2f;
    color: #000;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(243, 186, 47, 0.3);
}

/* Team & Investors */
.team-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.team-member-mini {
    text-align: center;
    transition: transform 0.2s;
}

.team-member-mini:hover {
    transform: translateY(-5px);
}

.team-member-mini img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin-bottom: 8px;
    object-fit: cover;
}

.investor-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--text-main);
    transition: 0.2s;
}

.investor-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.stats span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
}

.card-footer {
    display: flex;
    gap: 10px;
}

button.btn-primary {
    flex: 1;
    background: var(--primary);
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

button.btn-primary:hover {
    background: #33e4ff;
    box-shadow: 0 0 15px var(--primary-glow);
}

button.btn-outline {
    flex: 1;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

button.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Bot Cards specific */
.bot-card.premium {
    border: 1px solid rgba(157, 78, 221, 0.3);
    background: linear-gradient(180deg, rgba(157, 78, 221, 0.05) 0%, rgba(10, 11, 20, 0) 100%);
}

.bot-card.premium:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.bot-card .price {
    display: block;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Sidebar Right Widgets */
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget h3 {
    font-family: var(--font-logo);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rate-item:last-child {
    border-bottom: none;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.token-icon.btc {
    background: #f7931a;
    color: #fff;
}

.token-icon.sol {
    background: #000;
    border: 1px solid #14f195;
    color: #14f195;
}

.token-icon.eth {
    background: #627eea;
    color: #fff;
}

.price.success {
    color: var(--accent-success);
}

.price.down {
    color: var(--accent-danger);
}

/* News List */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.news-list .time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.news-list a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    display: block;
}

.news-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Comparison Table */
.comparison-section {
    margin-top: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.comparison-section h3 {
    text-align: center;
    font-family: var(--font-logo);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.premium-head {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

td {
    font-size: 0.95rem;
}

/* Footer */
.team-footer {
    background: #05060a;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-member {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.team-member .role {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.tg-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.tg-link:hover {
    color: #0088cc;
}

.footer-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rate-item:last-child {
    border-bottom: none;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.token-icon.btc {
    background: #f7931a;
    color: #fff;
}

.token-icon.sol {
    background: #000;
    border: 1px solid #14f195;
    color: #14f195;
}

.token-icon.eth {
    background: #627eea;
    color: #fff;
}

.price.success {
    color: var(--accent-success);
}

.price.down {
    color: var(--accent-danger);
}

/* News List */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.news-list .time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.news-list a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    display: block;
}

.news-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Comparison Table */
.comparison-section {
    margin-top: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.comparison-section h3 {
    text-align: center;
    font-family: var(--font-logo);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.premium-head {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

td {
    font-size: 0.95rem;
}

/* Footer */
.team-footer {
    background: #05060a;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-member {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.team-member .role {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.tg-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.tg-link:hover {
    color: #0088cc;
}

.footer-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-grid>div,
.project-grid>div {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Detail View Styles */
#project-detail-view {
    animation: fadeIn 0.4s ease-out;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--primary);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-header .logo-wrapper {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.detail-header h1 {
    font-family: var(--font-logo);
    font-size: 2rem;
    color: #fff;
    margin: 0;
}

.detail-content {
    margin-bottom: 40px;
}

.description-large {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.stats-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: #fff;
}

.actions-row {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.actions-row button {
    padding: 12px 30px;
    font-size: 1rem;
}

/* CTA Section at bottom of Detail View */
.bot-cta-section {
    background: linear-gradient(180deg, rgba(10, 11, 20, 0) 0%, rgba(0, 210, 255, 0.05) 100%);
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 20px;
}

.bot-cta-section h3 {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.bot-cta-section p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Update: Clean Project Detail Styles & New Tokens */

.token-icon.bnb {
    background: #f3ba2f;
    color: #fff;
}

.token-icon.gold {
    background: #ffd700;
    color: #000;
    font-weight: bold;
    border: 1px solid #e1c100;
}

.token-icon.sui {
    background: #3c82f6;
    color: #fff;
}

.token-icon.ton {
    background: #0088cc;
    color: #fff;
}

.detail-header {
    justify-content: flex-start;
    /* Ensure left align */
}

/* Make detail view cleaner */
.detail-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* Background visual decoration for detail */
.detail-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

.actions-row {
    margin-bottom: 0;
    /* Removing excess margin since it's now in a container */
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-cta-section {
    margin-top: 30px;
    border-top: none;
    background: var(--bg-card-hover);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--primary-glow);
    text-align: center;
    /* Center the CTA */
}

.bot-cta-section .grid-layout {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.bot-cta-section .bot-card {
    max-width: 350px;
    width: 100%;
    margin-bottom: 0;
    text-align: left;
}

/ *   = = =   R i c h   S e a r c h   D r o p d o w n   = = =   * /     . s e a r c h - r e s u l t s - d r o p d o w n    {
                 t o p :    5 5 p x ;
                 b o r d e r - r a d i u s :    1 2 p x ;
                 b a c k g r o u n d :    v a r ( - - b g - c a r d ) ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
                 b o x - s h a d o w :    0   1 0 p x   4 0 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 5 ) ;
                 o v e r f l o w :    h i d d e n ;
                 p a d d i n g :    5 p x ;
         
}

         . s e a r c h - i t e m    {
                 d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 g a p :    1 5 p x ;
                 p a d d i n g :    1 2 p x   1 5 p x ;
                 b o r d e r - r a d i u s :    8 p x ;
                 c u r s o r :    p o i n t e r ;
                 t r a n s i t i o n :    0 . 2 s ;
                 b o r d e r - b o t t o m :    1 p x   s o l i d   r g b a ( 2 5 5 ,    2 5 5 ,    2 5 5 ,    0 . 0 2 ) ;
         
}

         . s e a r c h - i t e m : l a s t - c h i l d    {
                 b o r d e r - b o t t o m :    n o n e ;
         
}

         . s e a r c h - i t e m : h o v e r    {
                 b a c k g r o u n d :    v a r ( - - b g - c a r d - h o v e r ) ;
         
}

         . s e a r c h - i t e m   i m g    {
                 w i d t h :    3 2 p x ;
                 h e i g h t :    3 2 p x ;
                 b o r d e r - r a d i u s :    5 0 % ;
         
}

         . s e a r c h - i n f o   h 4    {
                 m a r g i n :    0 ;
                 f o n t - s i z e :    0 . 9 5 r e m ;
                 c o l o r :    # f f f ;
                 f o n t - w e i g h t :    6 0 0 ;
         
}

         . s e a r c h - i n f o   p    {
                 m a r g i n :    2 p x   0   0 ;
                 f o n t - s i z e :    0 . 8 r e m ;
                 c o l o r :    v a r ( - - t e x t - m u t e d ) ;
         
}

         . s e a r c h - r a n k    {
                 m a r g i n - l e f t :    a u t o ;
                 f o n t - s i z e :    0 . 7 5 r e m ;
                 c o l o r :    v a r ( - - p r i m a r y ) ;
                 b a c k g r o u n d :    r g b a ( 0 ,    2 1 0 ,    2 5 5 ,    0 . 1 ) ;
                 p a d d i n g :    2 p x   6 p x ;
                 b o r d e r - r a d i u s :    4 p x ;
         
}

             / *   = = =   N e w   D e t a i l   V i e w   L a y o u t   = = =   * /     . d e t a i l - g r i d    {
                 d i s p l a y :    g r i d ;
                 g r i d - t e m p l a t e - c o l u m n s :    2 f r   1 f r ;
                 g a p :    3 0 p x ;
                 m a r g i n - b o t t o m :    4 0 p x ;
         
}

         / *   L e f t   c o m p o n e n t s   * /     . c h a r t - c o n t a i n e r    {
                 b a c k g r o u n d :    v a r ( - - b g - c a r d ) ;
                 b o r d e r - r a d i u s :    1 6 p x ;
                 p a d d i n g :    2 0 p x ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
                 m a r g i n - b o t t o m :    2 0 p x ;
                 m i n - h e i g h t :    4 0 0 p x ;
         
}

         / *   A n a l y s i s   S e c t i o n   * /     . a n a l y s i s - c a r d    {
                 b a c k g r o u n d :    v a r ( - - b g - c a r d ) ;
                 b o r d e r - r a d i u s :    1 6 p x ;
                 p a d d i n g :    2 5 p x ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
         
}

         . a n a l y s i s - s e c t i o n    {
                 m a r g i n - b o t t o m :    2 5 p x ;
         
}

         . a n a l y s i s - s e c t i o n   h 3    {
                 c o l o r :    v a r ( - - s e c o n d a r y ) ;
                 f o n t - s i z e :    1 . 1 r e m ;
                 m a r g i n - b o t t o m :    1 0 p x ;
                 f o n t - f a m i l y :    v a r ( - - f o n t - l o g o ) ;
         
}

         . a n a l y s i s - s e c t i o n   p    {
                 c o l o r :    v a r ( - - t e x t - m u t e d ) ;
                 l i n e - h e i g h t :    1 . 6 ;
         
}

         / *   R i g h t   S i d e b a r   C o m p o n e n t s   * /     . m e t r i c - c a r d    {
                 b a c k g r o u n d :    v a r ( - - b g - c a r d ) ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
                 b o r d e r - r a d i u s :    1 2 p x ;
                 p a d d i n g :    2 0 p x ;
                 m a r g i n - b o t t o m :    2 0 p x ;
         
}

         . m e t r i c - r o w    {
                 d i s p l a y :    f l e x ;
                 j u s t i f y - c o n t e n t :    s p a c e - b e t w e e n ;
                 m a r g i n - b o t t o m :    1 5 p x ;
                 p a d d i n g - b o t t o m :    1 5 p x ;
                 b o r d e r - b o t t o m :    1 p x   s o l i d   r g b a ( 2 5 5 ,    2 5 5 ,    2 5 5 ,    0 . 0 5 ) ;
         
}

         . m e t r i c - r o w : l a s t - c h i l d    {
                 b o r d e r - b o t t o m :    n o n e ;
                 m a r g i n - b o t t o m :    0 ;
                 p a d d i n g - b o t t o m :    0 ;
         
}

         . m e t r i c - l a b e l    {
                 c o l o r :    v a r ( - - t e x t - m u t e d ) ;
                 f o n t - s i z e :    0 . 9 r e m ;
         
}

         . m e t r i c - v a l u e    {
                 c o l o r :    # f f f ;
                 f o n t - w e i g h t :    6 0 0 ;
         
}

         / *   E x c h a n g e   L i s t   * /     . e x c h a n g e - r o w    {
                 d i s p l a y :    f l e x ;
                 j u s t i f y - c o n t e n t :    s p a c e - b e t w e e n ;
                 a l i g n - i t e m s :    c e n t e r ;
                 p a d d i n g :    1 0 p x   0 ;
                 b o r d e r - b o t t o m :    1 p x   s o l i d   r g b a ( 2 5 5 ,    2 5 5 ,    2 5 5 ,    0 . 0 5 ) ;
         
}

         . e x c h a n g e - n a m e    {
                 d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 g a p :    8 p x ;
                 f o n t - w e i g h t :    5 0 0 ;
         
}

         . e x c h a n g e - s c o r e    {
                 b a c k g r o u n d :    # f 3 b a 2 f ;
                 c o l o r :    # 0 0 0 ;
                 f o n t - s i z e :    0 . 7 5 r e m ;
                 p a d d i n g :    2 p x   6 p x ;
                 b o r d e r - r a d i u s :    4 p x ;
                 f o n t - w e i g h t :    b o l d ;
         
}

         / *   T e a m   &   I n v e s t o r s   * /     . t e a m - l i s t    {
                 d i s p l a y :    f l e x ;
                 g a p :    1 5 p x ;
                 f l e x - w r a p :    w r a p ;
                 m a r g i n - t o p :    1 0 p x ;
         
}

         . t e a m - m e m b e r - m i n i    {
                 t e x t - a l i g n :    c e n t e r ;
         
}

         . t e a m - m e m b e r - m i n i   i m g    {
                 w i d t h :    4 5 p x ;
                 h e i g h t :    4 5 p x ;
                 b o r d e r - r a d i u s :    5 0 % ;
                 b o r d e r :    2 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
                 m a r g i n - b o t t o m :    5 p x ;
         
}

         . i n v e s t o r - t a g    {
                 d i s p l a y :    i n l i n e - b l o c k ;
                 b a c k g r o u n d :    r g b a ( 2 5 5 ,    2 5 5 ,    2 5 5 ,    0 . 0 5 ) ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
                 p a d d i n g :    5 p x   1 2 p x ;
                 b o r d e r - r a d i u s :    2 0 p x ;
                 f o n t - s i z e :    0 . 8 5 r e m ;
                 m a r g i n - r i g h t :    8 p x ;
                 m a r g i n - b o t t o m :    8 p x ;
                 c o l o r :    v a r ( - - t e x t - m a i n ) ;
         
}

     