

@keyframes urgentRunAroundBorder {

    0% {
        top: 0;
        left: 0;
        width: 20px;
        height: 3px;
    }

    26% {
        top: 0;
        left: calc(100% - 20px);
        width: 20px;
        height: 3px;
    }

    27% {
        top: 0;
        left: calc(100% - 3px);
        width: 3px;
        height: 20px;
    }

    47% {
        top: calc(100% - 20px);
        left: calc(100% - 3px);
        width: 3px;
        height: 20px;
    }

    48% {
        top: calc(100% - 3px);
        left: calc(100% - 20px);
        width: 20px;
        height: 3px;
    }

    74% {
        top: calc(100% - 3px);
        left: 0;
        width: 20px;
        height: 3px;
    }

    75% {
        top: calc(100% - 20px);
        left: 0;
        width: 3px;
        height: 20px;
    }

    100% {
        top: 0;
        left: 0;
        width: 3px;
        height: 20px;
    }
}



.topcoins-amount {
    color: #60a5fa !important;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}



.bottom-cart-header {
    width: 100%;
}



.cart-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
}



.cart-summary-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}



.cart-total-text {
    font-size: 16px;
    font-weight: 700;
    color: #f9fafb;
}



.cart-summary-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #f9fafb;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 16px;
    border-radius: 12px;
}



.cart-toggle-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}



.cart-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}



.cart-toggle-btn:active {
    transform: scale(0.98);
}



.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 20px;
    flex-shrink: 0;
}



.cart-item-controls button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}



.cart-item-controls span {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    color: #f9fafb;
    font-size: 14px;
}



.market-container {
    position: relative;
    padding: 20px 16px 180px;
    max-width: 1200px;
    margin: 0 auto;
}



.market-header {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.market-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 8px 0;
}



.market-subtitle {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}



.bottom-cart-container {
    position: fixed;
    bottom: 85px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(40, 40, 40, 0.98));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUpCart 0.3s ease-out;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}



.bottom-cart-container.nav-expanded {
    bottom: 200px;
}



.bottom-cart-container.expanded {
    max-height: 70vh;
    overflow: hidden;
}



.bottom-cart-header {
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    border-radius: 20px 20px 0 0;
}



.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}



.cart-summary-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}



.cart-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}



.cart-total-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}



.cart-summary-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.cart-summary-prices span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}



.summary-coins {
    color: #f59e0b !important;
}



.cart-toggle-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}



.cart-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}



.cart-toggle-btn:active {
    transform: translateY(0);
}



.cart-toggle-btn.checkout {
    background: linear-gradient(135deg, #10b981, #059669);
}



.bottom-cart-items {
    max-height: calc(70vh - 100px);
    overflow-y: auto;
    padding: 0 16px 16px;
    border-radius: 0 0 20px 20px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



.bottom-cart-items.show {
    opacity: 1;
    transform: translateY(0);
}



@keyframes slideUpCart {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.market-balance-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



.market-orders-section {
    margin-bottom: 30px;
}



.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}



.orders-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #f9fafb;
    margin: 0;
}



.orders-count {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}



.orders-list {
    display: grid;
    gap: 16px;
}

.market-orders-skeleton {
    display: grid;
    gap: 12px;
}

.market-order-skeleton-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(18, 22, 30, 0.78) 0%, rgba(20, 24, 33, 0.68) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 22px rgba(0, 0, 0, 0.2);
    padding: 16px;
    animation: market-skeleton-pulse 1.5s ease-in-out infinite;
}

.market-order-skeleton-card::before,
.market-item-skeleton-card::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(108deg, transparent 0%, rgba(255, 255, 255, 0.1) 48%, transparent 82%);
    animation: market-skeleton-shimmer 1.8s ease-in-out infinite;
}

.market-order-skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.market-order-skeleton-id,
.market-order-skeleton-status,
.market-order-skeleton-line,
.market-item-skeleton-title,
.market-item-skeleton-desc,
.market-item-skeleton-prices,
.market-item-skeleton-stock,
.market-item-skeleton-btn {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
}

.market-order-skeleton-id {
    width: 110px;
    height: 18px;
}

.market-order-skeleton-status {
    width: 92px;
    height: 24px;
}

.market-order-skeleton-line {
    width: 62%;
    height: 16px;
}

.market-items-skeleton {
    display: contents;
}

.market-item-skeleton-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(18, 22, 30, 0.78) 0%, rgba(20, 24, 33, 0.68) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 22px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 382px;
    animation: market-skeleton-pulse 1.5s ease-in-out infinite;
}

.market-item-skeleton-image {
    width: 100%;
    height: 190px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.2);
}

.market-item-skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.market-item-skeleton-title {
    width: 56%;
    height: 22px;
}

.market-item-skeleton-desc {
    width: 86%;
    height: 14px;
}

.market-item-skeleton-desc.short {
    width: 68%;
}

.market-item-skeleton-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-item-skeleton-prices {
    width: 76%;
    height: 36px;
    margin: 0 auto;
}

.market-item-skeleton-stock {
    width: 46%;
    height: 14px;
    margin: 0 auto;
}

.market-item-skeleton-btn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
}

@keyframes market-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes market-skeleton-pulse {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.95;
    }
}

@media (prefers-reduced-motion: reduce) {
    .market-order-skeleton-card,
    .market-item-skeleton-card,
    .market-order-skeleton-card::before,
    .market-item-skeleton-card::before {
        animation: none;
        transform: none;
    }
}



.orders-empty {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 34px 16px;
    text-align: center;
}



.orders-empty-icon {
    font-size: 56px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}



.orders-empty p {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin: 0 0 6px 0;
}



.orders-empty span {
    font-size: 13px;
    color: #9ca3af;
}



.order-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



.order-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}



.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}



.order-id {
    font-size: 18px;
    font-weight: 700;
    color: #f9fafb;
}



.order-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}



.order-item.status-rejection .order-status {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}




.order-item.status-new .order-status {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
}



.order-item.status-closed .order-status {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}



.order-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.order-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}



.order-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    min-width: 70px;
}



.order-value {
    font-size: 14px;
    color: #f9fafb;
    font-weight: 500;
}



.order-item {
    cursor: pointer;
}



.view-all-orders-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    color: #f9fafb;
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}



.view-all-orders-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}



.all-orders-container {
    display: grid;
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px;
}



.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}



.order-details-id {
    font-size: 24px;
    font-weight: 700;
    color: #f9fafb;
}



.order-details-info {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}



.order-details-products {
    margin-bottom: 24px;
}



.order-details-products h4 {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
    margin: 0 0 16px 0;
}



.order-product-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 12px;
}



.order-product-image-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}



.order-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.order-product-icon {
    font-size: 40px;
}



.order-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.order-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
}



.order-product-quantity {
    font-size: 14px;
    color: #9ca3af;
}



.order-product-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}



.order-details-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: 16px;
}



.total-gems,
.total-coins {
    color: #f9fafb;
}



.market-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}



.market-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



.market-item:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}



.market-item.unavailable {
    opacity: 0.5;
    pointer-events: none;
}



.market-item.cannot-afford {
    opacity: 0.7;
}



.market-item-image-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
}



.market-item-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}



.market-item-icon {
    font-size: 80px;
    text-align: center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}



.market-item-info {
    flex: 1;
    margin-bottom: 16px;
    text-align: center;
}



.market-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 12px 0;
    line-height: 1.3;
}



.market-item-description {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}



.market-item-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}



.market-item-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}



.market-item-quantity {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: #4CAF50;
}



.market-item-quantity.out-of-stock {
    color: #f44;
}



.market-buy-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}



.market-buy-btn:hover:not(.disabled) {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}



.market-buy-btn.disabled {
    background: linear-gradient(135deg, #555, #444);
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}



.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}



.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}



.cart-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}



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



.cart-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #f9fafb;
    margin: 0;
}



.cart-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}



.cart-close-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: scale(1.1);
}



.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}



.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}



.cart-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}



.cart-empty p {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #f9fafb;
}



.cart-empty span {
    font-size: 14px;
    color: #9ca3af;
}





.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInCartItem 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}



@keyframes slideInCartItem {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



.cart-item:hover {
    background: rgba(255, 255, 255, 0.08);
}



.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    flex-shrink: 0;
}



.cart-item-info {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}



.cart-item-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin: 0 0 8px 0;
}



.cart-item-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
}



.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 20px;
    flex-shrink: 0;
    margin-left: auto;
}



.cart-item-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}



.cart-item-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}



.cart-item-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    color: #f9fafb;
}



.cart-comment-section {
    margin: 0 0 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: none;
    animation: slideInCartItem 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}





.cart-comment-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 8px;
}



.cart-comment-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    color: #f9fafb;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 60px;
    transition: all 0.3s ease;
}



.cart-comment-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}



.cart-comment-input::placeholder {
    color: #9ca3af;
}



.cart-comment-counter {
    text-align: right;
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}



.cart-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}



.cart-total-info {
    margin-bottom: 20px;
}



.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}



.cart-total-row span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
}



.cart-total-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}



.cart-total-prices .affordable {
    color: #4CAF50;
}



.cart-total-prices .not-affordable {
    color: #f44;
}



.cart-balance-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}



.cart-balance-info span:first-child {
    font-size: 14px;
    color: #9ca3af;
}



.cart-balance-values {
    display: flex;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}



.cart-balance-values .sufficient {
    color: #4CAF50;
}



.cart-balance-values .insufficient {
    color: #f44;
}



.market-buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.05);
}



.market-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(107, 114, 128, 0.3);
}
