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

body {
    font-family: 'Inter', 'Inter fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #0a0a0a;
    color: #a0a2a1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.9);
}

.page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #0a0a0a;
}

.header-section {
    background-color: #0a0a0a;
    padding: 24px;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 35rem;
}

.create-trade-btn {
    background: #ffffff;
    color: #000000;
    padding: 12px 24px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.create-trade-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.create-trade-btn:disabled {
    background: #ffffff;
    color: #000000;
    cursor: not-allowed;
    transform: none;
    position: relative;
    opacity: 0.7;
}

.create-trade-btn:disabled::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    pointer-events: none;
}

.search-container {
    position: relative;
}

.search-bar {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    width: 250px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.search-bar::placeholder {
    color: #a0a2a1;
}

.search-bar:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.9);
}

.live-trades-section {
    flex: 1;
    padding: 48px 24px;
    background-color: #0a0a0a;
}

.no-trades {
    text-align: center;
    color: #a0a2a1;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    border-radius: 16px;
    padding: 24px;
    margin: 0 auto;
    max-width: 1000px;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-trades h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.no-trades p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.create-first-trade-btn {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.create-first-trade-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.create-first-trade-btn:disabled {
    background: #ffffff;
    color: #000000;
    cursor: not-allowed;
    transform: none;
    position: relative;
    opacity: 0.7;
}

.create-first-trade-btn:disabled::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    pointer-events: none;
}

.trades-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.trade-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    min-height: 200px;
    position: relative;
    overflow: visible;
    animation: slideInUp 0.6s ease-out;
    z-index: 1;
}

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

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.trader-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.trader-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.trader-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 4px;
}

.expires-in {
    font-size: 14px;
    color: #a0a2a1;
}

.message-trader-btn {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-trader-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.message-trader-btn:disabled {
    background: #ffffff;
    color: #000000;
    cursor: not-allowed;
    transform: none;
    position: relative;
    opacity: 0.7;
}

.message-trader-btn:disabled::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    pointer-events: none;
}

.trade-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 16px 0;
}

.trade-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    overflow: visible;
}

.offering-section h4,
.looking-for-section h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    overflow: visible;
}

.item-box {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-box img {
    width: 64px;
    height: 64px;
    transition: all 0.2s ease;
}

/* Tooltip */
.item-tooltip {
    position: absolute;
    top: 50%;
    left: calc(100% + 15px);
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 99999999;
    min-width: 150px;
    text-align: left;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Tooltip arrow */
.item-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.95);
}

/* For items on the right edge, show tooltip on the left */
.items-grid .item-box:nth-child(4n) .item-tooltip {
    left: calc(-150px - 15px);
    right: auto;
}

.items-grid .item-box:nth-child(4n) .item-tooltip::after {
    left: auto;
    right: -12px;
    border-right-color: transparent;
    border-left-color: rgba(0, 0, 0, 0.95);
}

.item-box:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 9999998;
    position: relative;
    isolation: isolate;
}

.item-box:hover .item-tooltip {
    opacity: 1;
    pointer-events: auto;
}

/* Tooltip positioning variants */
.item-tooltip.tooltip-bottom::after {
    top: -12px;
    border-top-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.95);
}

.item-tooltip.tooltip-right::after {
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    border-left-color: transparent;
    border-right-color: rgba(0, 0, 0, 0.95);
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.item-tooltip.tooltip-left::after {
    top: 50%;
    right: -12px;
    left: auto;
    transform: translateY(-50%);
    border-right-color: transparent;
    border-left-color: rgba(0, 0, 0, 0.95);
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.tooltip-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 8px;
}

.tooltip-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
}

.tooltip-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-stat {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.tooltip-stat .label {
    color: #a0a2a1;
}

.tooltip-stat .value {
    color: #ffffff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
    opacity: 1;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    width: 85%;
    max-width: 900px;
    max-height: 85vh;
    overflow: visible;
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.steps-indicator {
    display: flex;
    gap: 30px;
    align-items: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #a0a2a1;
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step::before {
    content: attr(data-step);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.step.active::before {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #a0a2a1;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 99999;
}

.close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.step-content {
    display: none;
    padding: 24px 24px 100px 24px;
    position: relative;
}

.step-content.active {
    display: block;
}

.step-header {
    margin-bottom: 24px;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.item-search {
    flex: 1;
    max-width: 75%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.item-search:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.item-search::placeholder {
    color: #a0a2a1;
}

.selection-counter {
    color: #a0a2a1;
    font-size: 14px;
    white-space: nowrap;
}

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
}

.item-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-card:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.item-card.selected {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.item-card.selected span {
    color: #000000;
}

.item-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.item-card span {
    font-size: 12px;
    color: #a0a2a1;
    display: block;
}

.step-footer {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.next-btn, .publish-btn {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover, .publish-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Item Detail Modal */
.modal-content.item-detail {
    max-width: 500px;
    min-height: 450px;
    position: relative;
    overflow: visible;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: block !important;
    visibility: visible !important;
}

.modal-content.item-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.item-detail-content {
    position: relative;
    z-index: 10001;
    padding: 32px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
}

.item-detail-content img {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    border-radius: 12px;
}

.item-info h3 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
}

.item-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat {
    background: rgba(0, 0, 0, 0.8);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat .label {
    display: block;
    font-size: 12px;
    color: #a0a2a1;
    margin-bottom: 4px;
}

.mutations-section {
    margin-bottom: 24px;
    text-align: left;
}

.mutations-section label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

.mutation-dropdown {
    position: relative;
    z-index: 10000;
}

.mutation-selected {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 13px;
}

.mutation-selected::after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.2s ease;
}

.mutation-selected.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.mutation-selected:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.mutation-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-top: 2px;
    z-index: 99999;
    max-height: 150px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-5px);
    visibility: hidden;
    transition: all 0.2s ease;
}

.mutation-options.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.mutation-option {
    padding: 8px 12px;
    color: #a0a2a1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

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

.note-section {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
    margin-top: 16px;
}

.note-section p {
    color: #a0a2a1;
    font-size: 14px;
    margin: 0;
}

.add-item-btn {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 10px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    width: 100%;
}

.add-item-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Review Section */
.review-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.review-section h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 16px;
}

.review-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.review-item {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.review-item:hover {
    background: rgba(0, 0, 0, 0.9);
}

.review-item:hover .remove-item {
    opacity: 1;
}

.review-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.review-item span {
    font-size: 12px;
    color: #a0a2a1;
    display: block;
}

.remove-item {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background: rgba(255, 0, 0, 1);
}

/* Go back dropdown */
.go-back-dropdown {
    position: relative;
    display: inline-block;
}

.go-back-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.go-back-btn::after {
    content: '▼';
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.go-back-dropdown:hover .go-back-btn::after {
    transform: rotate(180deg);
}

.go-back-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.go-back-content {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 99999;
}

.go-back-dropdown:hover .go-back-content,
.go-back-content:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep dropdown open when hovering over the bridge area */
.go-back-dropdown:hover::after {
    pointer-events: auto;
}

.go-back-dropdown::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    z-index: 99998;
}

/* Bridge area to keep dropdown open when moving to content */
.go-back-dropdown::after {
    content: '';
    position: absolute;
    bottom: calc(100% - 8px);
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    z-index: 99997;
}

.go-back-content a {
    color: #a0a2a1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px;
}

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

/* Step 3 specific footer styling */


/* Success/Error Notification Modal */
.notification-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-modal.show {
    opacity: 1;
}

.notification-modal.show .notification-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notification-content {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 20% auto;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}





.notification-message {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 400;
}

.notification-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.notification-icon.success {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.notification-icon.error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.notification-ok-btn {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-ok-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    gap: 16px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
}

.pagination-btn {
    background: transparent;
    border: none;
    color: #a0a2a1;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: #a0a2a1;
    font-size: 14px;
    margin: 0 16px;
}

.pagination-dots {
    color: #a0a2a1;
    padding: 0 8px;
    font-size: 14px;
}

/* Glassmorphism Enhancement */
.glass-effect {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-effect-strong {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }
    
    .search-bar {
        width: 250px;
    }
    
    .trades-grid {
        grid-template-columns: 1fr;
    }
    
    .trade-items {
        grid-template-columns: 1fr;
    }
    
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-container {
        grid-template-columns: 1fr;
    }
    
    .review-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .search-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .item-search {
        max-width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        min-width: 36px;
    }
}