/* Minimal first-screen shell for mobile homepage. */

body {
    background: #f1f1f1;
    padding-top: 56px;
}

.fx_wrapper {
    overflow: hidden;
    background-color: #fff;
    max-width: 1171px;
    margin: 0 auto;
}

.fx_container {
    padding-left: 10px;
    padding-right: 10px;
}

.fx_bg {
    background-color: #fff;
}

.fx_long-blockdiv {
    text-align: center;
    margin-top: 20px;
}

.bybit-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #0b0e11;
    border-bottom: 1px solid #2a2e33;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bybit-navbar__container {
    height: 56px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bybit-navbar__logo {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
}

.bybit-navbar__logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.bybit-navbar__logo-image {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.bybit-navbar__nav,
.bybit-navbar__search,
.bybit-navbar__overflow-menu {
    display: none !important;
}

.bybit-navbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.bybit-navbar__language-btn,
.bybit-navbar__login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #2a2e33;
    color: #eaecef;
    text-decoration: none;
    font: 600 12px/1 Arial, sans-serif;
    background: transparent;
}

.bybit-navbar__language-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.bybit-navbar__mobile-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 0;
    background: none;
    border: 0;
    border-radius: 6px;
}

.bybit-navbar__hamburger-line {
    width: 18px;
    height: 2px;
    margin: 2px 0;
    background: #eaecef;
    border-radius: 1px;
}

.bybit-navbar__mobile-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    background: rgba(26, 29, 41, 0.98);
    border-bottom: 1px solid #2a2e33;
}

.bybit-navbar__mobile-content {
    padding: 24px;
}

#content {
    display: flex;
    align-content: space-between;
    justify-content: space-between;
    padding: 0;
}

.left_part.new-layout {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    float: none !important;
    position: relative;
    box-sizing: border-box;
}

#content .left_part.new-layout {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

.left_part.new-layout:before {
    display: none !important;
}

.top-two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 15px;
    box-sizing: border-box;
}

.content-column {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.compact_contest_section {
    margin: 12px 0 20px;
}

.contest_card {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 840px;
    margin: 0 auto;
    padding: 36px 18px;
    box-shadow: 0 6px 17px rgba(0, 0, 0, 0.35);
}

.contest_background,
.contest_image_bg {
    position: absolute;
    inset: 0;
}

.contest_image_bg {
    opacity: 0.3;
}

.contest_image_bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    opacity: 0.8;
}

.contest_image_media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.candlestick_pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
}

.contest_content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contest_title {
    margin: 0 0 14px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(22px, 7vw, 30px);
    font-weight: 700;
    color: #fff !important;
    line-height: 1.1;
}

.title_line {
    display: block;
}

.contest_dates,
.contest_prize,
.prize_label {
    color: #fff !important;
}

.contest_dates {
    margin: 0 0 16px;
    font: 400 13px/1.6 "Open Sans", Arial, sans-serif;
}

.contest_prize {
    margin: 0 0 20px;
    font: 600 17px/1.4 "Open Sans", Arial, sans-serif;
}

.prize_amount {
    color: #f7a600;
}

.contest_actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.contest_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    padding: 11px 22px;
    border-radius: 8px;
    font: 600 11px/1.2 "Open Sans", Arial, sans-serif;
    text-decoration: none;
}

.btn-register {
    background: #f7a600;
    color: #111827;
}

.btn-rules {
    background: transparent;
    color: #f7a600;
    border: 1px solid #f7a600;
}

.itx-latest-articles-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    min-height: 560px;
}

.full-width-content {
    content-visibility: auto;
    contain-intrinsic-size: 1px 2800px;
}

.modern-tabs {
    display: flex;
    align-items: stretch;
    background: #f5f5f5;
}

.modern-tab {
    flex: 1;
    min-height: 56px;
    border: 0;
    padding: 15px 18px;
    background: transparent;
    color: #666;
    font: 500 18px/1.3 Arial, sans-serif;
    text-align: center;
}

.modern-tab.active {
    background-color: #333;
    color: #fff;
}

.modern-tabs-content {
    background: #fff;
    min-height: 500px;
}

.modern-tab-panel {
    display: none;
    min-height: 420px;
}

.modern-tab-panel.active {
    display: block;
}

.articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.articles-list .article-item {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 5px 20px;
    margin-top: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.article-title {
    margin: 0;
    font: 400 16px/1.4 Arial, sans-serif;
}

.article-title a {
    color: #333 !important;
    text-decoration: none;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
}

.pagination-dots {
    display: flex;
    gap: 12px;
    min-height: 12px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .contest_card {
        padding: 28px 16px;
        min-height: 260px;
    }

    .contest_actions {
        flex-direction: column;
        width: 100%;
    }

    .contest_btn {
        width: 100%;
        max-width: 240px;
    }
}
