* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: #0a0a0a;
    color: #ffffff;
    padding-top: 80px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Create Trade Section */
.create-trade-section {
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    max-width: 1600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.create-trade-header {
    text-align: left;
    margin-bottom: 2rem;
}

.create-trade-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.create-trade-header p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: none;
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.create-trade-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #5048E5 0%, #4338CA 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 72, 229, 0.3);
}

.create-trade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(80, 72, 229, 0.4);
}

.search-container {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    color: white;
    font-family: 'Poppins', sans-serif;
    width: 300px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #5048E5;
    box-shadow: 0 0 0 3px rgba(80, 72, 229, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 2;
}

/* Trades Section */
.trades-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-trades {
    text-align: center;
    padding: 4rem 2rem;
}

.no-trades-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-trades-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-trades-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.trade-link {
    color: #5048E5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.trade-link:hover {
    color: #4338CA;
    text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #151515;
    background: #0d0d0d;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-content {
    padding: 1.5rem;
}

.modal-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Trade Sections */
.trade-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    justify-content: start;
    align-items: start;
    min-height: 300px;
    margin-left: -1.2rem;
}

.trade-section {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #ffffff;
}

.section-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.item-count {
    background: rgba(80, 72, 229, 0.2);
    color: #5048E5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.clear-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    min-height: 100px;
    justify-content: start;
    max-width: 100%;
    width: 100%;
}

.add-item-slot {
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #111111;
    font-family: 'Inter', sans-serif;
    min-height: 80px;
    width: 100%;
}



.add-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Trade Footer */
.trade-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #151515;
    margin-top: 2rem;
}

.footer-left {
    display: flex;
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.cancel-btn {
    background: #111111;
    border: 1px solid #151515;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-btn:hover {
    background: #151515;
    color: #ffffff;
}

.publish-btn {
    background: #5048E5;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.save-draft-btn {
    background: rgba(80, 72, 229, 0.2);
    border: 1px solid rgba(80, 72, 229, 0.3);
    color: #5048E5;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.save-draft-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.save-draft-btn:hover {
    background: rgba(80, 72, 229, 0.25);
    border-color: rgba(80, 72, 229, 0.4);
    color: #ffffff;
}

.publish-btn:hover {
    background: #4338CA;
}

/* Drafts Section */
.drafts-section {
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.drafts-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: left;
}

.no-drafts {
    text-align: center;
    padding: 3rem 2rem;
}

.no-drafts-animation {
    margin-bottom: 2rem;
    position: relative;
    height: 100px;
}

.draft-gif {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.8;
}

.no-drafts-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.no-drafts-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.value-display {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.value-display #offeringValue,
.value-display #requestedValue {
    color: #ffffff;
    font-weight: 600;
}

.value-display .value-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-bottom: -2px;
}

/* Item Selector Modal */
.item-selector-modal {
    max-width: 690px;
    max-height: 90vh;
    width: 90%;
}

.item-selector-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: #0d0d0d;
}

.item-selector-modal .modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0.3rem 0 0 0;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem 1rem 2rem;
}

.search-section .search-container {
    flex: 1;
    position: relative;
}

.search-section .search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
}

.search-section .search-input:focus {
    outline: none;
    border-color: #5048E5;
    box-shadow: 0 0 0 3px rgba(80, 72, 229, 0.1);
}

.search-section .search-icon {
    position: absolute;
    left: 0.8rem;
    top: calc(50% + 0.5rem);
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    pointer-events: none;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 1rem;
    align-self: center;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 4px;
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin: 0.8rem auto 1rem auto;
    min-width: 200px;
}

.filter-tab {
    flex: 1;
    padding: 0.5rem 0.8rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border-radius: 18px;
    text-align: center;
    white-space: nowrap;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tab.active {
    color: #ffffff;
}

.filter-tabs::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(33.333% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #5048E5 0%, #4338CA 100%);
    border-radius: 18px;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(80, 72, 229, 0.3);
    transform: translateX(0);
}

/* 3-tab layout (offering section - when tags is hidden) */
.filter-tabs:has(.filter-tab[data-filter="tags"][style*="display: none"])::before,
.filter-tabs.three-tab-mode::before {
    width: calc(33.333% - 2.67px);
}

.filter-tabs:has(.filter-tab[data-filter="tags"][style*="display: none"]).pets-active::before,
.filter-tabs.three-tab-mode.pets-active::before {
    transform: translateX(calc(100% + 1.33px));
}

.filter-tabs:has(.filter-tab[data-filter="tags"][style*="display: none"]).crops-active::before,
.filter-tabs.three-tab-mode.crops-active::before {
    transform: translateX(calc(200% + 2.67px));
}

/* 4-tab layout (requested section - when tags is visible) */
.filter-tabs:has(.filter-tab[data-filter="tags"]:not([style*="display: none"]))::before,
.filter-tabs.four-tab-mode::before {
    width: calc(25% - 2px);
}

.filter-tabs:has(.filter-tab[data-filter="tags"]:not([style*="display: none"])).all-active::before,
.filter-tabs.four-tab-mode.all-active::before {
    transform: translateX(1px);
}

.filter-tabs:has(.filter-tab[data-filter="tags"]:not([style*="display: none"])).pets-active::before,
.filter-tabs.four-tab-mode.pets-active::before {
    transform: translateX(calc(100% - 0.5px));
}

.filter-tabs:has(.filter-tab[data-filter="tags"]:not([style*="display: none"])).crops-active::before,
.filter-tabs.four-tab-mode.crops-active::before {
    transform: translateX(calc(200% - 2px));
}

.filter-tabs:has(.filter-tab[data-filter="tags"]:not([style*="display: none"])).tags-active::before,
.filter-tabs.four-tab-mode.tags-active::before {
    transform: translateX(calc(300% - 3.5px));
}

/* Force tags tab to be hidden when needed */
.filter-tabs .filter-tab[data-filter="tags"][style*="display: none"] {
    display: none !important;
}


/* Items Grid Container */
.items-grid-container {
    padding: 1rem 2rem 2rem 2rem;
    height: 300px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(5, 110px);
    grid-template-rows: repeat(2, 120px);
    gap: 1rem;
    justify-content: center;
}

.no-items-message {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.item-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 110px;
    aspect-ratio: 1;
}

.item-card:hover {
    transform: translateY(-2px);
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.item-image-section {
    flex: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    padding: 0.5rem;
    position: relative;
}

.item-image-section img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.item-stats-section {
    flex: 0.3;
    padding: 0.3rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1a1a1a;
    position: relative;
}

.item-name {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.item-divider {
    position: absolute;
    bottom: 2.2rem;
    left: 5.5rem;
    right: 0.5rem;
    height: 1px;
    background: #151515;
}

.item-value {
    position: absolute;
    bottom: 0.5rem;
    left: 5.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.value-icon {
    width: 12px;
    height: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 2rem;
    margin-top: -1rem;
}

.pagination-btn {
    background: #111111;
    border: 1px solid #151515;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #151515;
    color: #ffffff;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.3rem;
}

.pagination-number {
    background: #111111;
    border: 1px solid #151515;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover {
    background: #151515;
    color: #ffffff;
}

.pagination-number.active {
    background: #5048E5;
    border-color: #5048E5;
    color: #ffffff;
}

/* Customize Item Modal */
.customize-modal {
    max-width: 650px;
    width: 90%;
}

.customize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #0d0d0d;
    border-bottom: 1px solid #151515;
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.customize-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #0d0d0d;
    border-bottom: 1px solid #151515;
}

.customize-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.customize-item-info {
    flex: 1;
}

.customize-item-type {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.2rem;
}

.customize-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.mutations-count {
    background: #FFD700;
    color: #000;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #5048E5;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 35px;
}

.quantity-btn:hover {
    background: #4338CA;
    transform: scale(1.05);
}

.quantity-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

.quantity-value {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    min-width: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.quantity-value.pulse {
    animation: quantityPulse 0.3s ease;
}

@keyframes quantityPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.mutations-section {
    padding: 1.5rem;
    border-bottom: 1px solid #151515;
}

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

.mutations-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.selected-count {
    background: #FFD700;
    color: #000;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mutations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mutation-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.mutation-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mutation-item.selected {
    background: #5048E5;
    border-color: #5048E5;
    color: #ffffff;
}

.pet-fields {
    padding: 1.5rem;
    border-bottom: 1px solid #151515;
}

.bottom-section {
    padding: 1.5rem;
}

.price-weight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.field-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    z-index: 2;
}

.field-input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.field-input:focus {
    outline: none;
    border-color: #5048E5;
    box-shadow: 0 0 0 3px rgba(80, 72, 229, 0.1);
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cancel-btn {
    background: #111111;
    border: 1px solid #151515;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.cancel-btn:hover {
    background: #151515;
    color: #ffffff;
}

.add-item-btn {
    background: #5048E5;
    border: none;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-item-btn:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(80, 72, 229, 0.4);
}

.fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Enhanced Context Menu Styles */
.context-menu {
    position: fixed;
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 15000;
    min-width: 140px;
    display: none;
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
    transition: all 0.2s ease;
}

.context-menu.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

#itemContextMenu {
    z-index: 15000;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.context-menu-item.remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.context-menu-item.favourite:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.context-menu-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Enhanced Item Details Tooltip */
.item-details-tooltip {
    position: fixed;
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 15001;
    min-width: 200px;
    max-width: 280px;
    display: none;
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
    transition: all 0.2s ease;
}

.item-details-tooltip.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #151515;
}

.tooltip-header img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.tooltip-item-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.85rem;
}

.tooltip-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.8rem;
}

.tooltip-detail-label {
    color: rgba(255, 255, 255, 0.7);
}

.tooltip-detail-value {
    color: #ffffff;
    font-weight: 500;
    text-align: right;
    max-width: 120px;
    word-break: break-word;
}

/* Hover Tooltip */
.hover-tooltip {
    position: absolute;
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 8px;
    padding: 0.8rem;
    color: white;
    font-size: 0.8rem;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.95) translateX(-5px);
    transition: all 0.2s ease;
}

.hover-tooltip.show {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.hover-tooltip .tooltip-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #151515;
}

.hover-tooltip div {
    margin-bottom: 0.2rem;
}

.hover-tooltip div:last-child {
    margin-bottom: 0;
}

/* Confirmation Modal */
.confirmation-modal {
    max-width: 400px;
    width: 90%;
}

.confirmation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.confirmation-buttons .cancel-btn {
    background: #111111;
    border: 1px solid #151515;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-buttons .cancel-btn:hover {
    background: #151515;
    color: #ffffff;
}

.confirm-btn {
    background: #5048E5;
    border: none;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-btn:hover {
    background: #4338CA;
}

/* Success Modal */
.success-modal {
    max-width: 450px;
    width: 90%;
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 16px;
    overflow: hidden;
}

.success-content {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #5048E5;
    animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(2n) { background: #f59e0b; }
.confetti:nth-child(3n) { background: #ef4444; }
.confetti:nth-child(4n) { background: #10b981; }
.confetti:nth-child(5n) { background: #8b5cf6; }

@keyframes confetti-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: successPulse 0.6s ease-out;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.success-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: slideInUp 0.6s ease-out 0.4s both;
    font-size: 1rem;
}

.success-btn {
    background: #5048E5;
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    animation: slideInUp 0.6s ease-out 0.6s both;
    height: auto;
}

.success-btn:hover {
    background: #4338CA;
    transform: translateY(-2px);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Draft Cards */
.drafts-container {
    position: relative;
}

.drafts-list {
    display: grid;
    gap: 2rem;
}

.draft-card {
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 12px;
    padding: 2rem;
}

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

.draft-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.draft-delete {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #ff4444;
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.draft-delete:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
}

.draft-trade-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.draft-trade-section {
    background: transparent;
}

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

.draft-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #ffffff;
}

.draft-items-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.draft-item-slot {
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111111;
}

.draft-item-slot.has-item {
    border: 2px solid #5048E5;
    background: rgba(80, 72, 229, 0.1);
}

.draft-item-slot .selected-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.draft-item-slot .selected-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.draft-item-slot .item-name {
    font-size: 0.8rem;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
}

.draft-item-slot .add-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.7;
}

.draft-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.draft-load {
    background: rgba(80, 72, 229, 0.2);
    border: 1px solid rgba(80, 72, 229, 0.3);
    color: #5048E5;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.draft-load:hover {
    background: rgba(80, 72, 229, 0.25);
    border-color: rgba(80, 72, 229, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.draft-reposts {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.draft-reposts:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.draft-publish {
    background: #5048E5;
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.draft-publish:hover {
    background: #4338CA;
    transform: translateY(-1px);
}

/* Repost Options */
.repost-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.repost-option {
    background: rgba(80, 72, 229, 0.1);
    border: 1px solid rgba(80, 72, 229, 0.3);
    color: #ffffff;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.repost-option:hover {
    background: rgba(80, 72, 229, 0.2);
    border-color: rgba(80, 72, 229, 0.4);
    transform: translateY(-1px);
}

.repost-option.selected {
    background: #5048E5;
    border-color: #5048E5;
    color: #ffffff;
}

/* Toast Messages */
.message-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    min-width: 280px;
}

.message-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.message-toast.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.message-toast.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.message-toast.success .message-content i {
    color: #10b981;
    font-size: 1.1rem;
}

.message-toast.error .message-content i {
    color: #ef4444;
    font-size: 1.1rem;
}

/* Responsive Design for Customize Modal */
@media (max-width: 768px) {
    .customize-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .fields-row, .price-weight-row {
        grid-template-columns: 1fr;
    }
    
    .customize-header, .customize-item-header, .mutations-section, .pet-fields, .bottom-section {
        padding: 1rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .context-menu {
        min-width: 140px;
    }
    
    .context-menu-item {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .item-details-tooltip {
        min-width: 180px;
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
    
    .trade-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .items-grid {
        justify-content: center;
    }
    
    .add-item-slot {
        width: 100px;
        height: 100px;
    }
    
    .items-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .filter-tabs {
        width: 100%;
        margin: 0 1rem 1rem 1rem;
    }
    
    .modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .filter-tab {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .search-section {
        padding: 0 1rem 1rem 1rem;
    }
    
    .search-section .search-input {
        font-size: 0.9rem;
        padding: 0.7rem 1rem 0.7rem 2.2rem;
    }
    
    .item-card {
        border-radius: 12px;
    }
    
    .item-image-section {
        padding: 0.5rem;
    }
    
    .item-image-section img {
        width: 45px;
        height: 45px;
    }
    
    .item-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .create-trade-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .no-trades-icon {
        font-size: 3rem;
    }
    
    .no-trades-content h2 {
        font-size: 1.3rem;
    }
    
    .trade-section {
        padding: 0.8rem;
    }
    
    .trade-footer {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cancel-btn, .publish-btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1rem;
    }
    
    .add-item-slot {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }
    
    .items-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 0.4rem;
        padding: 0.5rem;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .item-count {
        font-size: 0.75rem;
    }
    
    .add-item-slot {
        min-height: 80px;
    }
    
    .add-item-slot i {
        font-size: 1.2rem;
    }
    
    .add-item-slot span {
        font-size: 0.8rem;
    }
    
    .selected-item {
        padding: 0.3rem;
    }
    
    .selected-item img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .selected-item .item-name {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }
    
    .item-quantity {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
    
    .draft-trade-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .draft-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .message-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}