@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 10px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff88;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a #0a0a0a;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.event-timestamp {
    color: #00ff88;
    font-weight: bold;
    margin-bottom: 5px;
}

.event-data {
    color: #cccccc;
    white-space: pre-wrap;
    word-break: break-all;
}

.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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.wallet-modal-content {
    position: relative;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.wallet-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.wallet-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wallet-modal-close:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

.wallet-modal-body {
    padding: 20px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #0f0f0f;
    margin-bottom: 12px;
}

.wallet-option:last-child {
    margin-bottom: 0;
}

.wallet-option:hover {
    border-color: #00ff88;
    background-color: #1a1a1a;
    transform: translateY(-1px);
}

.wallet-option img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.wallet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.wallet-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.4;
}

.header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
    min-height: 70px;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: bold;
    color: #00ff88;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 4px 0;
    min-width: 0;
    margin-right: 1rem;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    color: #888;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    border: 1px solid transparent;
    background: none;
    height: 35px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    color: #00ff88;
    background-color: #2a2a2a;
}

.nav-item.active {
    color: #00ff88 !important;
    background-color: #0a3d2a !important;
}

.nav-item.trending {
    color: #00ff88 !important;
    background-color: #0a3d2a !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.roadmap-btn.trending,
.markets-btn.trending {
    background-color: #0a3d2a !important;
    border-color: #00ff88 !important;
    color: #00ff88 !important;
}

.trending-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: fit-content;
}

.search-container {
    position: relative;
    min-width: 200px;
    flex-shrink: 0;
}

.search-input {
    background-color: #2a2a2a;
    border: none;
    padding: 8px 40px 8px 16px;
    border-radius: 8px;
    color: #fff;
    width: 100%;
    font-size: 0.875rem;
    min-width: 200px;
    height: 35px;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #666;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    width: 18px;
    height: 18px;
    z-index: 1;
}

.twitter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    box-sizing: border-box;
}

.twitter-btn svg {
    width: 18px;
    height: 18px;
}

.twitter-btn:hover {
    background: rgba(29, 155, 240, 0.1);
    border-color: rgba(29, 155, 240, 0.3);
    color: #1d9bf0;
    transform: translateY(-2px);
}

.wallet-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.wallet-connect-btn {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: 120px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.wallet-connect-btn:hover {
    background: linear-gradient(135deg, #00cc6a, #00aa55);
    transform: translateY(-1px);
}

.wallet-balance {
    color: #00ff88;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 2px 12px 0 12px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    white-space: nowrap;
    height: 35px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    line-height: 27px;
}

.wallet-disconnect-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    white-space: nowrap;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wallet-disconnect-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
    transform: translateY(-1px);
}

.disconnect-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem;
    width: 100%;
}

.market-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.market-filter-btn {
    background-color: transparent;
    border: 1px solid #2a2a2a;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.market-filter-btn:hover {
    border-color: #00ff88;
    color: #00ff88;
}

.market-filter-btn.active {
    background-color: #00ff88;
    color: #000;
    border-color: #00ff88;
}

.category-dropdown {
    position: relative;
    margin-left: auto;
}

.category-dropdown-btn {
    background-color: transparent;
    border: 1px solid #2a2a2a;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.category-dropdown-btn:hover {
    border-color: #00ff88;
    color: #00ff88;
}

.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
}

.category-option {
    padding: 0.75rem 1rem;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.category-option:hover {
    background-color: #2a2a2a;
    color: #00ff88;
}

.category-option.active {
    background-color: #00ff88;
    color: #000;
}

.filters-section {
    margin-bottom: 1.5rem;
}

.data-source-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    justify-content: center;
}

.mode-btn {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mode-btn:hover {
    border-color: #00ff88;
    color: #00ff88;
}

.mode-btn.active {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border-color: #00ff88;
    color: #000;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-search {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    width: 100%;
    max-width: 400px;
    font-size: 0.875rem;
}

.filter-search::placeholder {
    color: #666;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 8px 16px;
    border-radius: 20px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.filter-btn:hover {
    border-color: #00ff88;
    color: #00ff88;
}

.filter-btn.active {
    background-color: #00ff88;
    color: #000;
    border-color: #00ff88;
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.prediction-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.prediction-card:hover {
    border-color: #00ff88;
    transform: translateY(-2px);
}

.prediction-card.frozen-market {
    border: 2px solid #4488ff;
    opacity: 0.7;
}

.prediction-card.frozen-market:hover {
    border-color: #6699ff;
    box-shadow: 0 4px 20px rgba(68, 136, 255, 0.2);
}

.moderator-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 59, 48, 0.9);
    border: 1px solid #ff3b30;
    color: white;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}

.prediction-card:hover .moderator-delete-btn {
    opacity: 1;
}

.moderator-delete-btn:hover {
    background: rgba(255, 59, 48, 1);
    transform: scale(1.1);
}

.frozen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(68, 136, 255, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 1;
}

.prediction-card.frozen-market:hover .frozen-overlay {
    opacity: 1;
}

.frozen-overlay span {
    background: #4488ff;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.event-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    background-color: #2a2a2a;
    image-rendering: auto;
    will-change: transform;
}

.event-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card-content {
    margin-bottom: 1rem;
    flex: 1;
}

.option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #0a0a0a;
    border-radius: 8px;
    margin-bottom: 8px;
}

.option:last-child {
    margin-bottom: 0;
}

.option-name {
    font-weight: 500;
    color: #fff;
    font-size: 0.875rem;
}

.option-percentage {
    font-weight: 600;
    font-size: 1.125rem;
}

.option:first-child .option-percentage {
    color: #00ff88;
}

.option:last-child .option-percentage {
    color: #ff4444;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.volume {
    color: #666;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.time-left {
    color: #00ff88;
    font-weight: 500;
}

.market-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.market-status.resolved {
    background-color: #00ff88;
    color: #000;
}

.market-status.closed {
    background-color: #ff6b6b;
    color: #fff;
}

.market-status.frozen {
    background-color: rgba(68, 136, 255, 0.2);
    color: #4488ff;
    border: 1px solid #4488ff;
}

.actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.bet-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 50px;
}

.yes-btn {
    background-color: #00ff88;
    color: #000;
}

.yes-btn:hover {
    background-color: #00cc6a;
}

.no-btn {
    background-color: #ff4444;
    color: #fff;
}

.no-btn:hover {
    background-color: #cc3333;
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: stretch;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-right {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .search-container {
        width: 100%;
        min-width: auto;
    }

    .search-input {
        width: 100%;
        min-width: auto;
    }

    .wallet-controls {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .wallet-connect-btn,
    .wallet-disconnect-btn {
        width: 100%;
        min-width: auto;
        padding: 12px;
    }

    .main-content {
        padding: 1rem;
    }

    .predictions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .prediction-card {
        padding: 1rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .actions {
        justify-content: stretch;
    }

    .bet-btn {
        flex: 1;
        padding: 10px;
        font-size: 0.875rem;
    }

    .filter-search {
        max-width: none;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-left {
        flex: 1;
        min-width: 300px;
    }

    .header-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .search-container {
        flex: 1;
        min-width: 200px;
    }

    .predictions-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .main-content {
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .predictions-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .main-content {
        padding: 1.25rem;
    }
}

@media (min-width: 1025px) {
    .predictions-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .main-content {
        padding: 1.5rem;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .header {
        position: relative;
    }

    .header-container {
        padding: 0.75rem 1rem;
        min-height: auto;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

.create-market-btn,
.how-it-works-btn,
.markets-btn,
.roadmap-btn {
    background: none !important;
    border: 1px solid #00ff88 !important;
    color: #00ff88 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: 8px 12px !important;
}

.create-market-btn:hover,
.how-it-works-btn:hover,
.markets-btn:hover,
.roadmap-btn:hover {
    background-color: #0a3d2a !important;
    border-color: #00ff88 !important;
    color: #00ff88 !important;
}

.create-icon,
.info-icon,
.roadmap-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.create-market-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-market-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.create-market-content {
    position: relative;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.create-market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.create-market-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.create-market-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.create-market-close:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

.create-market-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00ff88;
}

.form-group small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 6px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.create-market-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #00ff88;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-market-submit-btn:hover {
    background-color: #00dd77;
    transform: translateY(-1px);
}

.create-market-submit-btn:active {
    transform: translateY(0);
}

#toastContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
    padding: 0 20px;
}

.toast {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid #00ff88;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.toast.success {
    border-color: #00ff88;
}

.toast.error {
    border-color: #ff4444;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.toast.success .toast-icon {
    background-color: #00ff88;
}

.toast.error .toast-icon {
    background-color: #ff4444;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.toast-message {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.toast-hiding {
    animation: slideOut 0.3s ease-out forwards;
}

.how-it-works-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.how-it-works-content {
    position: relative;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.how-it-works-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    background-color: #1a1a1a;
    z-index: 1;
}

.how-it-works-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00ff88;
    margin: 0;
}

.how-it-works-close {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.how-it-works-close:hover {
    background-color: #2a2a2a;
    color: #fff;
}

.how-it-works-body {
    padding: 2rem;
}

.hiw-section {
    margin-bottom: 2rem;
}

.hiw-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 1rem;
}

.hiw-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.hiw-section code {
    background-color: #2a2a2a;
    padding: 2px 6px;
    border-radius: 4px;
    color: #00ff88;
    font-family: monospace;
}

.hiw-section strong {
    color: #fff;
}

.freeze-btn, .unfreeze-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.freeze-btn:hover, .unfreeze-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.freeze-btn:active, .unfreeze-btn:active {
    transform: translateY(0);
}

.unfreeze-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.unfreeze-btn:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.hiw-section strong {
    color: #fff;
}
