/* 
   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: 99999;
    /* Higher than all modals */
    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;
    transition: width 0.3s ease;
}

.dashboard-layout.no-sidebar .main-content {
    width: 75%;
}

.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;
    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);
}

.badge.tier-alpha {
    background: linear-gradient(45deg, #ff3c00, #ff8c00);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(255, 60, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 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;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Responsive News Grid */
@media (max-width: 1000px) {
    .news-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 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: 80px;
    height: 80px;
    font-size: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.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;
}

/* === 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;
}

/* Analysis Section */
.analysis-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.analysis-section {
    margin-bottom: 25px;
}

.analysis-section h3 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: var(--font-logo);
}

.analysis-section p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Right Sidebar Components */
.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    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;
}

/* 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);
}

.exchange-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.exchange-score {
    background: #f3ba2f;
    color: #000;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Team & Investors */
.team-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.team-member-mini {
    text-align: center;
}

.team-member-mini img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin-bottom: 5px;
}

.investor-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--text-main);
}

/* === Token Icons Fix === */
.token-img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50%;
    object-fit: contain;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* === Project Card Logo Fix === */
.logo-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphism background */
    backdrop-filter: blur(5px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-wrapper:hover {
    transform: scale(1.1) rotate(2deg);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.project-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    /* Contain is safer for varied logos */
    padding: 4px;
    /* Tiny bit of breathing room but much less than before */
    border-radius: inherit;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}


/* === Wallet Modal === */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.wallet-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wallet-modal-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

.wallet-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wallet-modal-close:hover {
    color: white;
}

.wallet-modal-desc {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 1rem;
}

.wallet-option:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.wallet-option img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.wallet-option span:first-of-type {
    flex: 1;
    text-align: left;
}

.wallet-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.wallet-tag.popular {
    background: linear-gradient(135deg, #f0b90b, #cc9900);
    color: black;
}

.wallet-modal-footer {
    margin-top: 25px;
    text-align: center;
}

.wallet-modal-footer small {
    color: #666;
    font-size: 0.8rem;
}

.wallet-modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Connected Wallet Button */
.btn-connect.connected {
    background: linear-gradient(135deg, #00d26a, #00a854);
    padding-left: 15px;
    padding-right: 15px;
}

.btn-connect.connected .wallet-address {
    font-family: monospace;
    font-size: 0.85rem;
}


/* === Wallet Dropdown Menu === */
.wallet-wrapper {
    position: relative;
}

.wallet-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallet-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
}

.wallet-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d2ff, #9d4edd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wallet-info {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    font-size: 0.75rem;
    color: #00d26a;
    font-weight: 600;
}

.wallet-addr {
    font-family: monospace;
    font-size: 0.9rem;
    color: white;
}

.wallet-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

.wallet-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: left;
}

.wallet-dropdown-item:hover {
    background: rgba(0, 210, 255, 0.1);
    color: white;
}

.wallet-dropdown-item.disconnect {
    color: #ff6b6b;
}

.wallet-dropdown-item.disconnect:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff4757;
}

.wallet-dropdown-item i {
    width: 18px;
    text-align: center;
}

/* ============================================ */
/* === TOAST NOTIFICATION SYSTEM === */
/* ============================================ */

#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        opacity 0.3s ease;
    min-width: 320px;
}

.toast-notification.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.toast-hide {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon span {
    font-size: 1.3rem;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.toast-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    padding: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 12px 12px;
    animation: toastProgress linear forwards;
    transform-origin: left;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Toast Type Specific Styles */
.toast-success {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.12), rgba(0, 180, 100, 0.08));
    border-left: 4px solid #00ff9d;
}

.toast-error {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.12), rgba(180, 50, 50, 0.08));
    border-left: 4px solid #ff4d4d;
}

.toast-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(200, 150, 0, 0.08));
    border-left: 4px solid #ffc107;
}

.toast-info {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(0, 150, 200, 0.08));
    border-left: 4px solid #00d2ff;
}

/* Hover Effect */
.toast-notification:hover {
    transform: translateX(-5px);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
    #toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .toast-notification {
        min-width: auto;
    }
}

/* Animation for slide in from right */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =====================================
   PURCHASE BOT MODAL STYLES
   ===================================== */

.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purchase-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.purchase-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 24px;
    padding: 35px;
    width: 95%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 210, 255, 0.1);
    animation: purchaseModalSlideIn 0.4s ease;
}

@keyframes purchaseModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.purchase-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.purchase-modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

/* Header */
.purchase-header {
    text-align: center;
    margin-bottom: 25px;
}

.purchase-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.purchase-header h2 {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    background: linear-gradient(135deg, #00d2ff, #9d4edd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
}

.purchase-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

/* Features */
.purchase-features {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #ccc;
    font-size: 0.95rem;
}

.feature-item i {
    color: #00d26a;
    font-size: 1rem;
}

/* Price Section */
.purchase-price-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(157, 78, 221, 0.08));
    border-radius: 16px;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.price-tag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.price-tag .currency {
    font-size: 1.2rem;
    color: #00d26a;
    font-weight: 600;
}

.price-tag .amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-logo);
}

.price-tag .period {
    font-size: 1rem;
    color: #888;
}

.price-note {
    color: #666;
    font-size: 0.85rem;
    margin: 12px 0 0 0;
}

/* Payment Section */
.payment-section {
    text-align: center;
}

.network-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(243, 186, 47, 0.1);
    border: 1px solid rgba(243, 186, 47, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.network-badge img {
    width: 24px;
    height: 24px;
}

.network-badge span {
    color: #f3ba2f;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-purchase {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #00d26a, #00a854);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 210, 106, 0.3);
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 210, 106, 0.4);
}

.btn-purchase:active {
    transform: translateY(0);
}

.btn-purchase:disabled {
    background: #333;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-purchase i {
    font-size: 1.2rem;
}

.payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.8rem;
    margin-top: 15px;
}

.payment-info i {
    color: #00d26a;
}

/* Processing Section */
.processing-section {
    text-align: center;
    padding: 30px 0;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 210, 255, 0.2);
    border-top-color: #00d2ff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.processing-text {
    color: white;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.processing-hash {
    color: #888;
    font-size: 0.85rem;
    font-family: monospace;
    margin: 0;
    word-break: break-all;
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.2), rgba(0, 168, 84, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(0, 210, 106, 0);
    }
}

.success-icon i {
    font-size: 2.5rem;
    color: #00d26a;
}

.success-section h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.success-section>p {
    color: #888;
    margin: 0 0 25px 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #00d2ff, #9d4edd);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 210, 255, 0.4);
}

.tx-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 0.85rem;
}

.tx-link {
    color: #00d2ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.tx-link:hover {
    color: #9d4edd;
}

/* Error Section */
.error-section {
    text-align: center;
    padding: 20px 0;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(180, 50, 50, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-icon i {
    font-size: 2.5rem;
    color: #ff4d4d;
}

.error-section h3 {
    color: #ff4d4d;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}

.error-section>p {
    color: #888;
    margin: 0 0 25px 0;
}

.btn-retry {
    padding: 14px 35px;
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.5);
    border-radius: 12px;
    color: #ff6b6b;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-retry:hover {
    background: rgba(255, 77, 77, 0.25);
    border-color: #ff4d4d;
    color: white;
}

/* Bot Card in Detail View - Purchase Button */
.bot-card .btn-primary {
    transition: all 0.3s ease;
}

.bot-card.premium .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(243, 186, 47, 0.3);
}

/* =====================================
   LANGUAGE SELECTOR STYLES
   ===================================== */

.language-selector {
    position: relative;
    margin-right: 15px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.lang-btn .lang-flag {
    font-size: 1.2rem;
}

.lang-btn .lang-code {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lang-btn i {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.language-selector.active .lang-btn i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
}

.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-main);
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(0, 210, 255, 0.1);
}

.lang-option.active {
    background: rgba(0, 210, 255, 0.15);
    color: var(--primary);
}

.lang-option .lang-flag {
    font-size: 1.3rem;
}

/* Scrollbar for dropdown */
.lang-dropdown::-webkit-scrollbar {
    width: 4px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Market Report Card & News Styles */
.market-report-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.report-content p {
    margin-bottom: 20px;
}

.report-content b {
    color: var(--primary);
    font-weight: 600;
}

.report-content br+br {
    display: block;
    content: "";
    margin-top: 10px;
}

/* Grok Chat Adjustments */
.grok-chat-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.message.user {
    border-bottom-right-radius: 4px !important;
}

.message.system {
    border-top-left-radius: 4px !important;
}