@font-face {
    font-family: 'ProductSans';
    src: url('https://fragment.com/fonts/ProductSansRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ProductSans';
    src: url('https://fragment.com/fonts/ProductSansBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

*:focus {
    outline: none;
}

/* Hide scrollbars globally */
html,
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

* {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

:root {
    --bg-primary: rgb(17, 20, 23);
    --bg-secondary: rgb(33, 41, 50);
    --text-primary: #ffffff;
    --text-secondary: rgb(135, 148, 161);
    --text-tertiary: rgb(140, 154, 169);
    --accent-blue: rgb(36, 139, 218);
    --accent-blue-hover: #4db2ff;
    --border-color: #30363d;
    --hover-bg: #21262d;
    --font-family: ProductSans, -apple-system, system-ui, sans-serif;
}

body {
    font-family: var(--font-family);
    font-variant-ligatures: none;
    -webkit-font-smoothing: antialiased;
    background-color: rgb(26, 32, 38);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

/* Header Styles */
.header {
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(13, 17, 23, 0.95);
    overflow-x: auto;
}

.header-container {
    display: flex;
    align-items: center;
    height: 56px;
    background-color: rgb(33, 41, 50);
    min-width: fit-content;
}

.logo {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    min-width: calc((100vw - 720px) / 2);
    flex-shrink: 0;
}

.logo:focus,
.logo:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.logo-icon {
    width: 44px;
    height: 44px;
    margin: -10px -11px -10px -9px;
}

.logo-text {
    width: 101px;
    height: 24px;
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 26px;
    flex-grow: 1;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-link:focus,
.nav-link:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-blue);
}

.new-badge {
    background-color: var(--accent-blue);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 14px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    margin: 10px 16px;
    flex-shrink: 0;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    background-color: transparent;
    color: var(--text-secondary);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn:focus,
.btn:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-telegram {
    color: var(--text-primary);
    background-color: rgb(41, 52, 64);
    font-weight: 900;
}

.btn-telegram:hover {
    background-color: rgb(63, 78, 96);
}

.btn-ton {
    background-color: rgb(36, 139, 218);
    color: var(--text-primary);
    font-weight: 900;
}

.btn-ton:hover {
    background-color: var(--accent-blue-hover);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.hero-section {
    text-align: center;
    padding: 36px 42px 36px 42px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 23px;
    font-weight: 400;
    opacity: 0.9;
}

.learn-more {
    color: var(--accent-blue);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.learn-more:focus,
.learn-more:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.learn-more:hover {
    text-decoration: underline;
}

.search-container {
    position: relative;
    max-width: 720px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 54px 16px 66px;
    background-color: rgb(36, 46, 56);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-family);
    outline: none;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    height: 54px;
}

.search-input:focus,
.search-input:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.search-input:focus {
    background-color: rgb(36, 46, 56);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

/* Auctions Section */
.auctions-section {
    padding: 32px 0 100px;
    overflow-x: auto;
}

.auctions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    min-width: fit-content;
}

.auctions-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0 13px;
    flex-shrink: 0;
    white-space: nowrap;
}

.filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.filter-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--text-primary);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-dropdown:focus,
.filter-dropdown:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.filter-dropdown:hover {
    background-color: var(--hover-bg);
}

.filter-dropdown.active {
    background-color: rgb(36, 139, 218);
}

.filter-dropdown.active .dropdown-icon {
    stroke: #ffffff;
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: rgb(46, 58, 71);
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.filter-dropdown.active .filter-dropdown-menu {
    display: block;
}

.filter-dropdown-item {
    display: block;
    unicode-bidi: isolate;
    text-decoration: none;
    padding: 8px 60px 8px 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.filter-dropdown-item:focus,
.filter-dropdown-item:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.filter-dropdown-item:hover {
    background-color: rgb(56, 69, 83);
}

.filter-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 14px;
}

.filter-checkmark svg {
    width: 14px;
    height: 10px;
}

.filter-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dropdown-icon {
    stroke: var(--text-secondary);
}

/* Auctions Table */
.auctions-table {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 40px;
    background-color: rgb(41, 52, 64);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.table-body {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 40px;
    border-bottom: 1px solid #1a2026;
    cursor: pointer;
    transition: background-color 0.2s;
    align-items: center;
    max-height: 58px;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    line-height: 19px;
}

.table-row:focus,
.table-row:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: rgb(41, 52, 64);
}

.col-username {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 10px 20px;
    min-width: 0;
    overflow: hidden;
}

.username-main {
    font-size: 15px;
    font-weight: 700;
    color: var(--font-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.username-link {
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-bid {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 10px 10px;
    min-width: 0;
    overflow: hidden;
}

.bid-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.ton-symbol {
    display: flex;
    min-width: 0;
    width: 100%;
}

.ton-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3px;
    flex-shrink: 0;
}

.ton-amount {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.usd-equivalent {
    font-size: 13px;
    font-weight: 100;
    color: var(--text-tertiary);
    margin-left: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.col-time {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 10px 10px;
    min-width: 0;
    overflow: hidden;
}

.time-remaining {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-date {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.table-row:hover .col-arrow {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    overflow-x: auto;
}

.footer-container {
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    min-width: fit-content;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 300;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-link:focus,
.footer-link:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Responsive adjustments for 2560px width */
@media (min-width: 2560px) {

    .header-container,
    .main-content,
    .footer-container {
        max-width: 1800px;
        padding-left: 120px;
        padding-right: 120px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-description {
        font-size: 20px;
    }

    .auctions-title {
        font-size: 36px;
    }
}

/* All scrollbars are hidden - see global rules above */

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 19px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    flex-shrink: 0;
}

.menu-toggle:focus,
.menu-toggle:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* .menu-toggle svg {
    width: 24px;
    height: 24px;
} */

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: rgb(26, 32, 38);
    z-index: 999;
    transition: right 0.3s ease;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    display: none;
}

.mobile-menu.active {
    right: 0;
    display: flex;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 54px 2px 19px;
}

.mobile-menu-title {
    font-size: 10px;
    font-weight: 600;
    color: rgb(135, 148, 161);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.menu-close:focus,
.menu-close:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-close svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 0 0 20px 0;
    flex: 1;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px 11px 19px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.mobile-menu-link:focus,
.mobile-menu-link:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-link svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.mobile-menu-link:hover svg {
    color: var(--text-primary);
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    margin-top: auto;
}

.mobile-menu-buttons-description {
    text-align: center;
    font-size: 15px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mobile-btn {
    width: 100%;
    justify-content: center;
}

.mobile-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Media Query for 1071px */
@media (max-width: 1071px) {
    .header-buttons {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
    }

    .header-container {
        justify-content: start;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Media Query for 745px */
@media (max-width: 745px) {
    .header {
        overflow: visible;
    }

    .header-container {
        position: relative;
        justify-content: space-between;
        max-height: 48px;
    }

    .header-buttons {
        display: flex;
        margin-right: 60px;
        height: 18px;
    }

    .header-buttons>.btn-telegram {
        display: none;
        padding: 5px 9px;
        font-size: 13px;
    }

    .header-buttons>.btn-ton {
        display: flex;
        padding: 5px 9px;
        font-size: 13px;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgb(33, 41, 50);
        gap: 26px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        z-index: 99;
        height: 42px;
        padding: 0 17px;
    }

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

    .nav-link {
        white-space: nowrap;
    }

    .main-content {
        max-width: 480px;
        padding: 0 12px;
    }

    .table-header {
        grid-template-columns: 2fr 1.5fr 40px;
    }

    .table-row {
        grid-template-columns: 2fr 1.5fr 40px;
        min-height: 44px;
    }

    .col-time {
        display: none;
    }

    .col-bid {
        font-size: 13px;
        font-weight: 100;
        color: var(--text-tertiary);
        margin-left: 4px;
    }

    .col-username,
    .col-bid,
    .col-time {
        overflow: hidden;
        font-size: 12px;
        padding-top: 6px;
        padding-bottom: 5px;
    }

    .username-main,
    .username-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

    }

    .username-main,
    .ton-amount {
        font-size: 13px;
        height: 16px;
        display: flex;
        align-items: center;
    }

    .username-link,
    .usd-equivalent,
    .ton-symbol {
        font-size: 11px;
        height: 16px;
    }

    .bid-amount {
        overflow: hidden;
    }

    .ton-amount {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .time-remaining {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-container {
        height: 42px;
    }

    .search-input {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
        padding: 12px 42px 12px 48px;
        height: 42px;
    }

    .auctions-table {
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .auctions-table::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .logo {
        height: 48px;
        padding: 15px 14px;
    }

    .logo-icon {
        height: 34px;
        width: 34px;
        margin: -8px;
    }

    .logo-text {
        height: 18px;
        width: 77px;
    }

    .hero-section {
        padding: 63px 0 21px 0;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-description {
        font-size: 13px;
    }

    .search-input::placeholder {
        font-size: 14px;
    }

    .auctions-section {
        padding-top: 20px;
    }

    .auctions-title {
        font-size: 18px;
    }

    .filter-label {
        font-size: 13px;
    }

    .filter-dropdown {
        padding: 5px 9px;
    }

    .filters {
        gap: 5px;
    }

    .filter-dropdown-item {
        padding: 7px 60px 7px 14px;
    }

    .filter-dropdown {
        gap: 4px;
    }

}