@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 */
    min-width: fit-content;
}

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 */
}

button {
    background: none;
}

: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;
    --gift-width: 168px;
    --gift-height: 256px;
    --gift-gap: 12px;
}

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: 1400px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.content-wrapper {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    min-height: 0;
}

/* Sidebar */
.sidebar {
    width: 294px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 76px;
    align-self: flex-start;
    height: calc(100vh - 96px);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 84px;
    margin-right: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sidebar-search-container {
    position: relative;

}

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

.sidebar-search-input {
    width: 100%;
    padding: 12px 42px 12px 48px;
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-family);
    outline: none;
    transition: all 0.2s;
}

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

.collection-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    min-height: 0;
}

.collection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    background-color: rgb(40, 50, 61);
    height: 42px;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    transition: border-bottom-right-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-bottom-left-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-section.collapsed .collection-header {
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

.collection-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    flex: 1;
}

.collection-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.collection-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.collection-toggle svg {
    width: 16px;
    height: 16px;
}

.collection-section.collapsed .collection-toggle {
    transform: rotate(0deg);
}

.collection-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 5000px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.collection-section.collapsed .collection-content {
    max-height: 0;
    opacity: 0;
}

.collection-search-container {
    display: block;
    margin: 0;
}

.collection-list {
    flex: 0 1 auto;
    overflow: visible;
    min-height: 0;
}

.collection-search-input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    background-color: rgb(33, 42, 51);
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-family);
    outline: none;
}

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

.collection-list {
    flex: 1;
    overflow: visible;
}

.collection-item {
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    background-color: rgb(33, 42, 51);
}

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

.collection-item.active {
    background-color: var(--accent-blue);
    color: var(--text-primary);
}

.collection-item-name {
    font-size: 14px;
    font-weight: 500;
}

.collection-item-count {
    font-size: 15px;
    color: var(--text-secondary);
    margin-left: 8px;
    max-height: 100vh;
}

.collection-item.active .collection-item-count {
    color: #ffffff;
}

/* Gifts Main Section */
.gifts-main {
    box-sizing: border-box;
    max-width: 1068px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 100%;
}

.gifts-header {
    margin-bottom: 14px;
    margin-top: 34px;
}

.gifts-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
}

.gifts-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin: 0 13px;
}

.collections-button-mobile {
    display: none;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.collections-button-mobile:hover {
    background-color: var(--hover-bg);
}

/* Mobile Search (shown on 1370px and below) */
.gifts-search-mobile {
    display: none;
    margin-bottom: 16px;
    gap: 12px;
    align-items: center;
}

.gifts-search-container {
    position: relative;
    flex: 1;
    min-width: 0;
}

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

.gifts-search-input {
    width: 100%;
    min-width: 0;
    padding: 12px 16px 12px 44px;
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-family);
    outline: none;
    transition: all 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

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

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

.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;
}

.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: var(--hover-bg);
    color: var(--text-primary);
}

.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);
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
}

.view-toggle-btn {
    padding: 6px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.view-toggle-btn:hover {
    color: var(--text-primary);
    background-color: var(--hover-bg);
}

.view-toggle-btn.active {
    color: var(--text-primary);
    background-color: var(--accent-blue);
}

.view-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Gifts Grid */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--gift-width));
    gap: var(--gift-gap);
    justify-content: start;
    width: 100%;
}

.gift-card {
    width: var(--gift-width);
    height: var(--gift-height);
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    align-items: center;
}

.gift-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gift-image {
    width: 100%;
    height: 168px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gift-pattern {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    opacity: 0.3;
}

.gift-number-overlay,
.gift-time-overlay {
    display: none;
}

.gift-info {
    flex: 1;
    padding: 10px 10px 13px 10px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    position: relative;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.gift-bid-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.gift-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    min-width: 0;
    width: 100%;
}

.gift-name-text {
    display: inline-block;
    max-width: calc(100% - 50px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.gift-name-number {
    flex-shrink: 0;
    color: var(--text-primary);
}

.gift-time {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 200;
    padding-bottom: 7px;
}

.gift-bid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}


.gift-bid-amount {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.gift-auction-btn {
    padding: 2px 6px;
    background-color: rgba(90, 236, 140, 0.1);
    border: none;
    border-radius: 6px;
    color: rgb(90, 236, 140);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.gift-auction-btn:hover {
    background-color: rgba(90, 236, 140, 0.2);
}

/* Collections Modal */
.collections-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.collections-modal.active {
    display: flex;
}

.collections-modal-content {
    background-color: rgb(26, 32, 38);
    border-radius: 8px;
    width: 100%;
    max-width: 360px;
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
}

.collections-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 16px;
}

.collections-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.collections-modal-close {
    background-color: rgb(40, 50, 61);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    outline: none;
    width: 26px;
    height: 26px;
}


.collections-modal-list {
    flex: 1;
    overflow-y: auto;
    margin: 0 16px;
    box-sizing: border-box;
    position: relative;
}

.collections-modal-list::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(26, 32, 38, 0.95) 0%, rgba(26, 32, 38, 0.92) 10%, rgba(26, 32, 38, 0.85) 20%, rgba(26, 32, 38, 0.75) 30%, rgba(26, 32, 38, 0.6) 40%, rgba(26, 32, 38, 0.45) 50%, rgba(26, 32, 38, 0.3) 60%, rgba(26, 32, 38, 0.2) 70%, rgba(26, 32, 38, 0.1) 80%, rgba(26, 32, 38, 0.05) 90%, transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    mask: linear-gradient(to bottom, black 0%, black 60%, rgba(0, 0, 0, 0.3) 80%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, black 0%, black 60%, rgba(0, 0, 0, 0.3) 80%, transparent 100%);
    pointer-events: none;
    z-index: 10;
    display: block;
    margin: 0;
    padding: 0;
    margin-bottom: -10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.collections-modal-list.scrolled::before {
    opacity: 1;
}

.collections-modal-list-content {
    margin-bottom: 24px;
}

.collection-modal-item {
    width: 100%;
    padding: 9px 16px;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    background-color: rgb(33, 42, 51);
}

.collection-modal-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.collection-modal-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.collection-modal-item:hover {
    background-color: rgb(41, 52, 64);
}

.collection-modal-item.active {
    background-color: rgb(36, 139, 218);
}

.collection-modal-item.active .collection-modal-count {
    color: #ffffff;
}

.collection-modal-item.active .collection-modal-arrow {
    color: #ffffff;
}

.collection-modal-item.active .collection-modal-arrow path {
    stroke: #ffffff;
}

.collection-modal-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
    flex-shrink: 0;
}

.collection-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.collection-modal-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.collection-modal-count {
    font-size: 12px;
    color: rgb(140, 154, 169);
}

.collection-modal-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* 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:hover {
    color: var(--text-primary);
}

/* Mobile Menu */
.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-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 {
    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: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.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;
    outline: none;
}

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

.mobile-menu-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.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;
}

/* Responsive Design - 2560px: 6 columns */
@media (max-width: 2560px) {

    .content-wrapper {
        max-width: 1456px;
        margin: 0 auto;
        width: 100%;
    }

    .gifts-grid {
        grid-template-columns: repeat(6, var(--gift-width));
        gap: var(--gift-gap);
    }

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

}

/* Responsive Design - 1820px: 5 columns */
@media (max-width: 1460px) {
    .gifts-grid {
        grid-template-columns: repeat(5, var(--gift-width));
        gap: var(--gift-gap);
    }
}

/* Responsive Design - 1600px: 4 columns */
@media (max-width: 1280px) {
    .gifts-grid {
        grid-template-columns: repeat(4, var(--gift-width));
        gap: var(--gift-gap);
    }
}

/* Responsive Design - 1370px: 4 columns, sidebar hidden */
@media (max-width: 1100px) {
    .sidebar {
        display: none;
    }

    .sidebar-search-container {
        display: none;
    }

    .collections-button-mobile {
        display: block;
    }

    .gifts-search-mobile {
        display: flex;
    }

    .gifts-grid {
        grid-template-columns: repeat(4, var(--gift-width));
        gap: var(--gift-gap);
    }
}

/* Responsive Design - 590px: 3 columns */
@media (max-width: 770px) {
    :root {
        --gift-width: 131.25px;
        --gift-height: 167.25px;
        --gift-gap: 5px;
    }

    .sidebar {
        display: none;
    }

    .sidebar-search-container {
        display: none;
    }

    .collections-button-mobile {
        display: block;
    }

    .gifts-search-mobile {
        display: flex;
    }

    .gifts-grid {
        grid-template-columns: repeat(4, var(--gift-width));
        gap: var(--gift-gap);
    }

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

    .gift-card {
        width: var(--gift-width);
        height: var(--gift-height);
    }

    .gift-image {
        height: 131.25px;
        flex-shrink: 0;
    }

    .gift-info {
        flex: 0 0 auto;
        padding: 8px;
        min-height: 36px;
        justify-content: center;
    }

    .gift-name,
    .gift-time {
        display: none;
    }

    .gift-image {
        position: relative;
    }

    .gift-number-overlay,
    .gift-time-overlay {
        display: block;
        position: absolute;
        bottom: 4px;
        padding: 2px 4px 1px 4px;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        font-size: 7px;
        font-weight: 600;
        color: #ffffff;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .gift-number-overlay {
        left: 4px;
    }

    .gift-time-overlay {
        right: 4px;
    }

    .filters {
        gap: 5px;
    }

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

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

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

    .filter-dropdown {
        gap: 4px;
    }

    .ton-icon {
        width: 13px;
        height: 16px;
    }

    .gift-bid-amount {
        font-size: 12px;
    }
    
    .gift-auction-btn {
        display: none;
    }

    .gift-bid-container::after {
        content: "Auction";
        padding: 2px 5px;
        background-color: rgba(90, 236, 140, 0.1);
        border-radius: 6px;
        color: rgb(90, 236, 140);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .gift-bid {
        gap: 2px;
    }

}

/* Responsive Design - 450px: 2 columns */
@media (max-width: 600px) {
    .sidebar {
        display: none;
    }

    .sidebar-search-container {
        display: none;
    }

    .collections-button-mobile {
        display: block;
    }

    .gifts-search-mobile {
        display: flex;
    }

    .gifts-grid {
        gap: var(--gift-gap);
    }

    .gifts-main {
        padding: 12px;
    }

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

    .filters {
        gap: 5px;
    }

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

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

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

    .filter-dropdown {
        gap: 4px;
    }

    .view-toggle {
        padding: 3px;
    }

    .view-toggle-btn {
        padding: 4px;
    }

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

    .gift-card {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }

}

/* Media Query for 1071px - Header adjustments */
@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 - Mobile adjustments */
@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;
    }

    .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: 24px;
        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;
    }

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

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

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

    .gifts-header {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {

    .collections-modal {
        padding: 100px 0 0 0;
    }

    .collections-modal-content {
        max-width: 100%;
        height: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

}

/* Responsive Design - 440px: 2 columns */
@media (max-width: 440px) {
    .gifts-grid {
        grid-template-columns: repeat(3, var(--gift-width));
        gap: var(--gift-gap);
    }

    .gift-card {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }
    
}

@media (max-width: 350px) {
    .gifts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gift-gap);
    }

    .gift-card {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
    }

    .gift-image {
        aspect-ratio: 131 / 131;
        height: auto;
    }

}

@media (max-width: 245px) {
    .gifts-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: var(--gift-gap);
    }

}