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

html {
    overflow-x: clip;
}

body {
    background: #0a0e13;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    min-height: 100vh;
    overflow-x: clip;
}

img, canvas {
    max-width: 100%;
}

/* Navigation Bar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 18, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #19242e;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00FFA3 0%, #03E1FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    overflow: hidden;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e6edf3;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-metrics {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-metric-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    background: #141d26;
    text-align: center;
}

.navbar-metric-label {
    font-size: 0.68rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.navbar-metric-value {
    font-size: 0.82rem;
    color: #e6edf3;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.settings-icon {
    width: 40px;
    height: 40px;
    background: #141d26;
    border-radius: 50%;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #e2e8ef;
    font-size: 1.5rem;
    font-weight: 600;
}

.settings-icon:hover {
    background: #19232f;
    border: 1px solid #e2e8ef;
    color: #e2e8ef;
}

/* .profile-icon {
    width: 16px;
    height: 16px;
    stroke: 1;
} */

.connect-btn {
    background: #1d261e;
    color: #c6f285;
    padding: 0.65rem 1rem;
    border-radius: 28px;
    border: 1.5px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connect-btn:hover {
    background: #1d261e;
    box-shadow: none;
    border: 1.5px solid #c6f285;
    color: #c6f285;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background: rgba(15, 18, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #19242e;
    padding: 0.75rem 1rem;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
}

.mobile-nav-btn {
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    transition: all 0.2s;
    flex: 1;
    max-width: 200px;
}

.mobile-nav-btn.trending {
    animation: trendingGlow 2s ease-in-out infinite;
}

.mobile-nav-btn.trending:hover,
.mobile-nav-btn.trending.active {
    animation-play-state: paused;
    color: #e6edf3 !important;
    text-shadow: none !important;
}

.mobile-nav-left {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-right {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-separator {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #19242e;
    background: rgba(11, 14, 19, 0.5);
}

.tab {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab:hover {
    color: #e6edf3;
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: #0D1117;
    background: #C4F82A;
    font-weight: 600;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Content Layout */
.content {
    display: grid;
    grid-template-columns: 1fr 420px;
    grid-template-areas:
        "header bet"
        "stats  bet"
        "chart  bet";
    column-gap: 2rem;
    row-gap: 0;
}

.market-header-section {
    grid-area: header;
    padding: 2rem 2rem 0;
}

.market-stats-section {
    padding: 0 0 1rem;
}

.market-stats-desktop {
    grid-area: stats;
    padding: 0 2rem;
}

.market-stats-mobile {
    display: none;
}

/* Left Panel - Chart */
.chart-panel {
    grid-area: chart;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 0 2rem 2rem;
}

.market-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.market-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.market-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.market-icon::after {
    display: none;
}

.market-info h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.market-category {
    color: #8b949e;
    font-size: 0.85rem;
}

.live-badge {
    background: rgba(0, 255, 163, 0.1);
    color: #00FFA3;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-badge.bad-prediction {
    background: rgba(255, 51, 102, 0.15);
    color: #FF0066;
}

/* Prediction Badge for Trending Market Cards */
.prediction-badge {
    background: rgba(0, 255, 163, 0.1);
    color: #00FFA3;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prediction-badge.bad-prediction {
    background: rgba(255, 51, 102, 0.20);
    color: #ff5599;
}

.prediction-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.prediction-badge-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.prediction-badge-value {
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #00FFA3;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.trending-link {
    animation: trendingGlow 2s ease-in-out infinite;
}

@keyframes trendingGlow {
    0%, 100% {
        color: #8b949e;
        text-shadow: none;
    }
    33% {
        color: #00FFA3;
        text-shadow: 0 0 10px rgba(0, 255, 163, 0.5);
    }
    66% {
        color: #c6f285;
        text-shadow: 0 0 10px rgba(198, 242, 133, 0.5);
    }
}

.trending-link:hover {
    animation-play-state: paused;
    color: #e6edf3 !important;
    text-shadow: none !important;
}

.trending-link.active {
    animation-play-state: paused;
    color: #e6edf3 !important;
    text-shadow: none !important;
}

/* Ticker */
.ticker-container {
    flex: 1;
    overflow: hidden;
    margin: 0 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 1rem;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    height: 24px;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    animation: scroll 60s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding-right: 3rem;
    font-size: 0.85rem;
    color: #8b949e;
    font-weight: 500;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Trending Section */
.trending-section {
    padding: 2rem 4rem;
    background: #0B0E13;
    min-height: calc(100vh - 60px);
    display: none;
}

.trending-section.active {
    display: block;
}

.container.hidden {
    display: none;
}

.trending-container {
    max-width: 1400px;
    margin: 0 auto;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.trending-title {
    font-size: 2rem;
    font-weight: 700;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.trending-title .bi-fire {
    font-size: 2rem;
    color: #00FFA3;
    text-shadow: 0 0 10px rgba(0, 255, 163, 0.5);
}

.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.category-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #e6edf3;
    color: #e6edf3;
}

.category-btn.active {
    background: rgba(0, 255, 163, 0.1);
    border-color: rgba(0, 255, 163, 0.5);
    color: #00FFA3;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 1.5rem;
}

.market-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* border-radius: 16px; */
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.market-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 255, 163, 0.3);
    /* transform: translateY(-2px); */
}

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

.market-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.market-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-card-info {
    flex: 1;
    min-width: 0;
}

.market-card-category {
    font-size: 0.75rem;
    color: #8b949e;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.market-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.market-card-stats {
    display: flex;
    gap: 2rem;
    padding-top: 0.5rem;
    /* border-top: 1px solid rgba(255, 255, 255, 0.08); */
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #8b949e;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #8b949e;
}

.trending-section .market-card-stats .prediction-badge {
    display: none;
    align-self: center;
}

.trending-section .market-card-header .prediction-badge {
    font-size: 1.4rem;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 2rem 4rem;
    background: #0B0E13;
    min-height: calc(100vh - 60px);
    display: none;
}

.leaderboard-section.active {
    display: block;
}

.leaderboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.leaderboard-header {
    margin-bottom: 2rem;
}

.leaderboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.leaderboard-title .bi-trophy-fill {
    font-size: 2rem;
    color: #00FFA3;
    text-shadow: 0 0 10px rgba(0, 255, 163, 0.5);
}

.leaderboard-table-wrapper {
    overflow-x: auto;
    width: 100%;
    /* Custom scrollbar styling to match trophy icon color */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0, 255, 163, 0.5) transparent; /* Firefox */
}

/* Webkit browsers (Chrome, Safari, Edge) */
.leaderboard-table-wrapper::-webkit-scrollbar {
    height: 8px; /* Thin scrollbar like mobile */
}

.leaderboard-table-wrapper::-webkit-scrollbar-track {
    background: transparent; /* Invisible track */
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 163, 0.5);
    border-radius: 4px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 163, 0.7);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.leaderboard-header-row {
    display: grid;
    grid-template-columns: 250px 1fr 140px 140px 140px;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-column-header {
    font-size: 0.75rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    user-select: none;
    text-align: center;
}

.leaderboard-column-header:nth-child(1) {
    text-align: left;
}

.leaderboard-column-header.sortable {
    cursor: pointer;
    transition: color 0.2s;
}

.leaderboard-column-header.sortable:hover {
    color: #e6edf3;
}

.leaderboard-column-header.active {
    color: #00FFA3;
}

.leaderboard-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    display: grid;
    grid-template-columns: 250px 1fr 140px 140px 140px;
    gap: 1.5rem;
    align-items: center;
    transition: none;
    cursor: default;
}

.leaderboard-card:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}


.leaderboard-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.leaderboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.leaderboard-user-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-username {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e6edf3;
}

.leaderboard-address {
    font-size: 0.8rem;
    color: #8b949e;
    font-family: monospace;
}

.leaderboard-distribution {
    display: flex;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-distribution-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

.leaderboard-distribution-segment:hover {
    opacity: 0.8;
}

.leaderboard-stat {
    text-align: center;
}

.leaderboard-stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #8b949e;
}

.leaderboard-stat-value.positive {
    color: #00FFA3;
}

/* Market Info */
.market-info-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding-left: calc(60px + 1rem);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.75rem;
    color: #8b949e;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e6edf3;
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.info-value.flash {
    animation: flashGreen 0.6s ease;
}

@keyframes flashGreen {
    0% {
        color: #e6edf3;
        transform: scale(1);
    }
    50% {
        color: #00FFA3;
        transform: scale(1.1);
    }
    100% {
        color: #e6edf3;
        transform: scale(1);
    }
}

/* ChartJS Container */
.chartjs-container {
    position: relative;
    background: transparent;
    border-radius: 12px;
    padding: 0rem;
    margin-bottom: 2rem;
}

.chartjs-wrapper {
    position: relative;
    height: 400px;
    margin-bottom: 10px;
}

.axis-title-link {
    margin-top: 0.5rem;
    cursor: pointer;
    color: #8b949e;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    transition: opacity 0.2s;
}

.axis-title-link:hover {
    opacity: 0.8;
}

/* Rules Section */
.rules-section {
    margin-top: 2rem;
    padding: 1.5rem;
}

.rules-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rules-content {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.6;
}

.rules-content p {
    margin-bottom: 1rem;
}

.view-rules-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6edf3;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.2s;
}

.view-rules-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-top: 1.5rem;
    color: #e6edf3;
    font-weight: 600;
    cursor: pointer;
}

.timeline-header::before,
.timeline-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-header:hover {
    color: #c6f285;
}

.timeline-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline-content.expanded {
    max-height: 500px;
    opacity: 1;
    padding-top: 1rem;
}

.timeline-content p {
    margin: 0;
}

.timeline-item {
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.timeline-value {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
}

.timeline-description {
    font-size: 0.85rem;
    color: #8b949e;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

#timeline-chevron {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.timeline-header.expanded #timeline-chevron {
    transform: rotate(180deg);
}

.timeline-header {
    transition: color 0.2s ease;
}

/* Right Panel - Bet */
.bet-panel {
    grid-area: bet;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.bet-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #19242e;
}

.bet-tab {
    color: #8b949e;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.bet-tab i {
    font-size: 1.5rem;
    font-weight: 600;
    -webkit-text-stroke: 0.5px currentColor;
}

.bet-tab:hover {
    color: #e6edf3;
}

.bet-tab.active {
    color: #e6edf3;
    border-bottom-color: #c6f285;
    font-weight: 600;
}

.bet-tab.active:nth-child(1) {
    background: linear-gradient(to top, rgba(200, 243, 132, 0.3), rgba(200, 243, 132, 0));
}

.bet-tab.active:nth-child(2) {
    background: linear-gradient(to top, rgba(255, 0, 107, 0.7), rgba(255, 0, 107, 0));
    border-bottom-color: rgb(242, 137, 181);
    /* background: linear-gradient(to top, rgba(4, 190, 240, 0.3), rgba(4, 190, 240, 0)); */
}

.bet-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.bet-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F7931A 0%, #FFAB00 100%);
    border-radius: 50%;
    position: relative;
}

.bet-icon::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #03E1FF;
    border-radius: 50%;
    border: 2px solid rgba(16, 20, 26, 1);
}

.bet-title-section {
    flex: 1;
}

.bet-question {
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
}

.bet-choice {
    font-size: 0.95rem;
    font-weight: 600;
}

.bet-choice-detail {
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 400;
}

.payment-section {
    /* background: rgba(12, 15, 20, 0.8); */
    background: rgba(21, 30, 41, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.payment-section.has-input {
    background: rgba(18, 22, 28, 0.9);
    border: 1px solid rgba(0, 216, 144, 0.6);
    box-shadow: 0 0 16px rgba(0, 216, 144, 0.2), 0 0 8px rgba(0, 216, 144, 0.15), inset 0 0 24px rgba(0, 216, 144, 0.08);
}

.prediction-section {
    background: rgba(21, 30, 41, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: none;
}

.prediction-section.visible {
    display: block;
}

.prediction-section.has-input {
    background: rgba(18, 22, 28, 0.9);
    border: 1px solid rgba(0, 216, 144, 0.6);
    box-shadow: 0 0 16px rgba(0, 216, 144, 0.2), 0 0 8px rgba(0, 216, 144, 0.15), inset 0 0 24px rgba(0, 216, 144, 0.08);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #8b949e;
    font-size: 0.8rem;
}

.prediction-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prediction-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(196, 248, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C4F82A;
    font-size: 1.5rem;
    overflow: hidden;
}

.prediction-info {
    flex: 1;
}

.prediction-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.prediction-label {
    color: #8b949e;
    font-size: 0.8rem;
}

.prediction-value {
    font-size: 2rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: #6e7681;
    text-align: right;
    width: 120px;
    outline: none;
}

.prediction-value:focus,
.prediction-value.has-value {
    color: #e6edf3;
}

.prediction-value::-webkit-outer-spin-button,
.prediction-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.prediction-value[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.trade-section {
    display: block;
    min-height: 0; /* Allow flex sizing */
}

.trade-section.hidden {
    display: none;
}

.scenarios-section {
    display: none;
}

.scenarios-section.visible {
    display: block;
}

.slider-container {
    background: rgba(16, 20, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem 1.5rem; /* top/bottom: 0, left/right: 1.25rem */
    margin-bottom: 1.75rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.slider-label {
    color: #8b949e;
    font-size: 0.8rem;
}

.slider-value {
    font-size: 1.25rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: #6e7681;
    text-align: right;
    width: 40px;
    outline: none;
}

.slider-value:focus,
.slider-value.has-value {
    color: #e6edf3;
}

.slider-value::-webkit-outer-spin-button,
.slider-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slider-value-label {
    color: #6e7681;
    font-size: 1.25rem;
    font-weight: 600;
}

.slider-value[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.slider-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 255, 163, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00FFA3;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.slider-info {
    flex: 1;
}

.slider-percent {
    color: #6e7681;
    font-size: 1.25rem;
    font-weight: 600;
}

.slider-value.has-value + .slider-percent {
    color: #e6edf3;
}

.slider {
    width: 100%;
    height: 18px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00FFA3 0%, #03E1FF 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 255, 163, 0.3);
    margin-top: -6px;
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00FFA3 0%, #03E1FF 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 255, 163, 0.3);
    margin-top: -6px;
}

.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #8b949e;
    font-size: 0.8rem;
}

.balance {
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.currency-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.currency-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.currency-info {
    flex: 1;
}

.currency-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.currency-amount {
    color: #8b949e;
    font-size: 0.8rem;
}

.amount {
    font-size: 2rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: #6e7681;
    text-align: right;
    width: 120px;
    outline: none;
}

.amount:focus,
.amount.has-value {
    color: #e6edf3;
}

.amount::-webkit-outer-spin-button,
.amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.odds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0 0;
}

.odds-header:hover .odds-label {
    color: #e6edf3;
}

.odds-label {
    color: #8b949e;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.odds-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e6edf3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end; /* icon to right when NaN */
    font-variant-numeric: tabular-nums;
}

.odds-value.has-chance {
    justify-content: flex-start; /* chance left, icon right when value exists */
}

.odds-value > span {
    display: inline-block;
    min-width: 160px; /* fixed width for "+$99.99 Profit" to prevent icon shift */
    text-align: right;
    font-variant-numeric: tabular-nums; /* equal digit widths */
    white-space: nowrap;
    color: #8b949e; /* Default gray color */
    transition: color 0.2s;
}

.odds-value > span:not(.empty) {
    color: #e6edf3; /* White color when value is present */
}

.odds-value > span.green {
    color: #00FFA3 !important;
}

.odds-value > span.red {
    color: rgba(255, 0, 107) !important;
}

.odds-value > span.empty {
    min-width: 0; /* collapse when empty so icon goes to right */
    width: 0;
}

.odds-content {
    margin-top: 0.75rem;
    display: none;
}

.odds-content.expanded {
    display: block;
}

.odds-content .bet-details {
    margin-bottom: 0;
}

.odds-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0; /* prevent icon from shrinking */
    overflow: hidden;
    --fill-height: 0%;
}

.odds-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--fill-height, 0%);
    background: linear-gradient(180deg, #00FFA3 0%, #03E1FF 100%);
    transition: height 0.3s ease;
}

.chevron-icon {
    transition: transform 0.2s;
}

.chevron-icon.rotated {
    transform: rotate(180deg);
}

.bet-details {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.detail-label {
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.detail-value {
    font-weight: 600;
    color: #8b949e;
}

.detail-value.has-value {
    color: #e6edf3;
}

.detail-value.green {
    color: #00FFA3;
}

.detail-value.red {
    color: rgba(255, 0, 107);
}

.buy-button {
    width: 100%;
    background: linear-gradient(90deg, #A8E426 0%, #00D890 40%, #00C9D4 70%, #00B8E6 100%);
    color: #0B0E13;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 16px rgba(0, 216, 144, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(0, 216, 144, 0.4);
}

.buy-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 8px rgba(0, 216, 144, 0.2);
    filter: brightness(0.85);
}

.buy-button.disabled {
    background: linear-gradient(90deg, rgba(168, 228, 38, 0.25) 0%, rgba(0, 216, 144, 0.25) 40%, rgba(0, 201, 212, 0.25) 70%, rgba(0, 184, 230, 0.25) 100%);
    color: #4a7c68;
    cursor: not-allowed;
    box-shadow: none;
}

.buy-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.buy-button.disabled:active {
    transform: none;
    box-shadow: none;
    filter: none;
}

/* Tutorial Popup */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 19, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tutorial-overlay.show {
    opacity: 1;
    visibility: visible;
}

.tutorial-popup {
    background: linear-gradient(180deg, #0f1419 0%, #0a0e13 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 880px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-overlay.show .tutorial-popup {
    transform: scale(1);
}

.tutorial-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6edf3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
}

.tutorial-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #c6f285;
    color: #c6f285;
}

.tutorial-header {
    margin-bottom: 2rem;
    text-align: left;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tutorial-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tutorial-subtitle {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tutorial-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tutorial-section {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.tutorial-section:hover .tutorial-icon {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.tutorial-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tutorial-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tutorial-icon i {
    font-size: 2rem;
    font-weight: 600;
    -webkit-text-stroke: 0.5px currentColor;
}

.tutorial-icon.long {
    background: linear-gradient(135deg, #c6f285 0%, rgba(200, 243, 132, 0.8) 100%);
    color: #0a0e13;
}

.tutorial-icon.short {
    background: linear-gradient(135deg, #FF006B 0%, rgb(242, 137, 181) 100%);
    color: #0a0e13;
}

.tutorial-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.tutorial-section-description {
    color: #8b949e;
    font-size: 0.8rem;
    line-height: 1.4;
}

.tutorial-content {
    color: #8b949e;
    font-size: 0.85rem;
    line-height: 1.6;
}

.tutorial-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tutorial-content li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.tutorial-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #8b949e;
    font-weight: 600;
}

.tutorial-content strong {
    color: #e6edf3;
    font-weight: 600;
}

/* Email Form Popup */
.email-form-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.email-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1a1f26;
    border: 2px solid #2d333b;
    border-radius: 28px;
    padding: 1.1rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 25rem;
    margin: 0 auto;
}

.email-input-wrapper:focus-within {
    border-color: #e2e8ef;
    box-shadow: 0 0 0 4px rgba(198, 242, 133, 0.12);
    transform: translateY(-2px);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8ef;
    font-size: 1.05rem;
    font-family: inherit;
    font-weight: 500;
    text-align: center;
}

.email-input::placeholder {
    color: #6e7681;
    font-weight: 400;
    text-align: center;
}

.email-submit-btn {
    width: 100%;
    max-width: 25rem;
    background: #1d261e;
    color: #c6f285;
    border: 1.5px solid transparent;
    border-radius: 28px;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    margin: 0 auto;
}

.email-submit-btn:hover {
    background: #1d261e;
    box-shadow: none;
    border: 1.5px solid #c6f285;
    color: #c6f285;
}

.email-submit-btn:active {
    transform: scale(0.98);
}

.email-message {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "bet"
            "chart";
    }

    .market-stats-desktop {
        display: none;
    }

    .market-stats-mobile {
        display: block;
        padding: 0 0 0 1.5rem;
    }

    .rules-section {
        margin-top: 1rem;
    }

    .market-header-section {
        padding: 1.5rem 1.5rem 0;
    }

    .market-stats-section {
        padding: 0 1.5rem;
    }

    .bet-panel {
        position: relative;
        top: 0;
    }

    .market-header-section {
        margin-bottom: -1rem;
    }

    .chart-panel {
        padding: 1.5rem;
    }

    .container {
        margin: 1.5rem auto;
    }

    .market-info-grid {
        padding-left: 0;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .info-item {
        flex: 0 0 calc(33.33% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .navbar-metrics {
        display: none;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-left {
        gap: 0.75rem;
    }

    .nav-links {
        display: none;
    }

    .trending-section {
        padding: 1.5rem 1rem;
    }

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

    .trending-title {
        font-size: 1.5rem;
    }

    .category-filters {
        width: 100%;
        overflow: visible;
        flex-wrap: wrap;
        padding-bottom: 0rem;
    }

    .markets-grid {
        grid-template-columns: 1fr;
    }

    .market-card-stats {
        gap: 1rem;
    }


    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .market-header-section {
        padding: 1rem 1rem 0;
    }

    .market-stats-section {
        padding: 0 1rem 1rem;
    }

    .market-stats-mobile {
        padding: 0 0 0 1rem;
    }

    .rules-section {
        margin-top: 1rem;
    }

    .chart-panel {
        padding: 0 1rem 1rem;
    }

    .live-badge {
        display: none;
    }

    .market-info h1 {
        font-size: 1.15rem;
    }

    .market-icon {
        width: 44px;
        height: 44px;
    }

    .live-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .market-card {
        border-radius: 16px;
    }
    /* Trending section prediction badge */
    .trending-section .market-card-header .prediction-badge-container {
        display: none;
    }

    .trending-section .market-card-stats .prediction-badge {
        display: flex;
        align-self: center;
        font-size: 1.25rem;
        padding: 0.5rem 0.5rem;
        margin: 0;
    }

    /* Leaderboard mobile styles */
    .leaderboard-section {
        padding: 1.5rem 1rem;
    }

    .leaderboard-title {
        font-size: 1.5rem;
    }

    .leaderboard-list {
        min-width: 900px;
    }

    .leaderboard-header-row {
        grid-template-columns: 150px 1fr 90px 90px 90px;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .leaderboard-column-header {
        font-size: 0.7rem;
    }

    .leaderboard-column-header:nth-child(2) {
        text-align: left;
    }

    .leaderboard-card {
        grid-template-columns: 150px 1fr 90px 90px 90px;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .leaderboard-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .leaderboard-username {
        font-size: 0.85rem;
    }

    .leaderboard-address {
        font-size: 0.7rem;
    }

    .leaderboard-stat-value {
        font-size: 0.85rem;
    }

    .market-info-grid {
        padding-left: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 0;
    }

    .info-item {
        flex: initial;
    }

    .chartjs-container {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .chartjs-wrapper {
        height: 280px;
    }

    .bet-panel {
        padding: 1rem;
    }

    .amount {
        font-size: 1.5rem;
        width: 90px;
    }

    .prediction-value {
        font-size: 1.5rem;
        width: 90px;
    }

    .connect-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .buy-button {
        font-size: 0.9rem;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    .slider::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }

    .slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }

    .tutorial-popup {
        padding: 1.5rem;
        max-width: 95%;
    }

    .tutorial-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
    }

    .tutorial-title {
        font-size: 1.2rem;
    }

    .tutorial-subtitle {
        font-size: 0.85rem;
    }

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

    .tutorial-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .tutorial-section-header {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .tutorial-section-title {
        font-size: 0.9rem;
    }

    .tutorial-content li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.75rem;
    }

    .logo {
        width: 34px;
        height: 34px;
    }

    .logo img {
        width: 34px;
        height: 34px;
    }

    .settings-icon {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .connect-btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .container {
        margin: 0rem auto;
    }
    
    .market-info h1 {
        font-size: 1rem;
    }

    .market-icon {
        width: 36px;
        height: 36px;
    }

    .market-info-grid {
        gap: 0.4rem 0.6rem;
    }

    .info-value {
        font-size: 0.85rem;
    }

    .chartjs-container {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .chartjs-wrapper {
        height: 220px;
    }

    .bet-panel {
        padding: 0 1rem;
    }

    .payment-section,
    .prediction-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .amount {
        font-size: 1.25rem;
        width: 80px;
    }

    .prediction-value {
        font-size: 1.25rem;
        width: 80px;
    }

    .odds-value {
        font-size: 1.2rem;
    }

    .odds-value > span {
        min-width: 140px;
    }

    .slider-container {
        padding: 0.75rem 1rem;
    }

    .buy-button {
        font-size: 0.85rem;
        padding: 0.85rem;
    }

    .rules-section {
        padding: 1rem;
    }

    .tutorial-popup {
        padding: 1rem;
    }

    .tutorial-close {
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .tutorial-header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
        padding-right: 2.5rem;
    }

    .tutorial-title {
        font-size: 1.05rem;
    }

    .tutorial-subtitle {
        font-size: 0.8rem;
    }

    .tutorial-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .tutorial-section-header {
        gap: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .tutorial-section-title {
        font-size: 0.85rem;
    }

    .tutorial-section-description {
        font-size: 0.75rem;
    }

    .tutorial-content {
        font-size: 0.8rem;
    }

    .tutorial-content li {
        margin-bottom: 0.4rem;
        padding-left: 1.25rem;
    }
}

/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.popup-overlay.show {
    display: block;
}

.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 185, 129, 0.1);
    /* border: 1px solid #c6f285; */
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.success-popup.show {
    display: block;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.success-popup-icon {
    font-size: 3rem;
    color: #c6f285;
    margin-bottom: 0.75rem;
}

.success-popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #c6f285;
    margin-bottom: 0.5rem;
    text-align: center;
}

.success-popup-message {
    font-size: 1rem;
    color: #00FFA3;
    line-height: 1.5;
}
