* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pricedown', 'Impact', 'Arial Black', sans-serif;
}

body {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 1000px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.95) 0%, rgba(25, 25, 35, 0.95) 100%);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(245, 73, 39, 0.3);
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(245, 73, 39, 0.3);
}

.logo {
    width: 60px;
    height: 60px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(245, 73, 39, 0.7));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.header-info h1 {
    font-size: 36px;
    font-weight: 900;
    color: #F54927;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.btn-close {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #D32F2F;
    border-color: #D32F2F;
    transform: rotate(90deg);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #F54927;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.stat-icon {
    font-size: 32px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-family: 'Segoe UI', sans-serif;
}

.stat-value {
    color: white;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

.inventory-grid::-webkit-scrollbar {
    width: 8px;
}

.inventory-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.inventory-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F54927 0%, #FF8C42 100%);
    border-radius: 10px;
}

.inventory-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: itemAppear 0.6s ease-out backwards;
}

@keyframes itemAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotateZ(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateZ(0deg);
    }
}

.inventory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 73, 39, 0.3), transparent);
    transition: left 0.6s ease;
}

.inventory-item:hover::before {
    left: 100%;
}

.inventory-item:hover {
    border-color: #F54927;
    background: rgba(245, 73, 39, 0.1);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(245, 73, 39, 0.4);
}

.item-icon {
    font-size: 42px;
    margin-bottom: 8px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.item-name {
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
    font-family: 'Segoe UI', sans-serif;
}

.item-amount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(245, 73, 39, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-page {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

.btn-page:hover:not(:disabled) {
    background: linear-gradient(135deg, #F54927 0%, #FF8C42 100%);
    border-color: #F54927;
    transform: scale(1.05);
}

.btn-page:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

/* Radial Menu (GTA V Style) */
.radial-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 400px;
    height: 400px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.radial-menu.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.radial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(30, 30, 45, 0.98) 100%);
    border: 3px solid #F54927;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(245, 73, 39, 0.6);
    z-index: 10;
    animation: centerPulse 2s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(245, 73, 39, 0.6);
    }
    50% {
        box-shadow: 0 0 60px rgba(245, 73, 39, 0.9);
    }
}

.item-preview {
    text-align: center;
}

#previewImage {
    font-size: 42px;
    margin-bottom: 5px;
}

.item-preview .item-name {
    font-size: 12px;
    margin-bottom: 3px;
}

.item-preview .item-amount {
    position: static;
    font-size: 10px;
}

.radial-segments {
    position: relative;
    width: 100%;
    height: 100%;
}

.segment {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(245, 73, 39, 0.8) 0%, rgba(255, 140, 66, 0.8) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.segment:hover {
    background: linear-gradient(135deg, #F54927 0%, #FF8C42 100%);
    transform: scale(1.15);
    box-shadow: 0 10px 40px rgba(245, 73, 39, 0.8);
    z-index: 5;
}

.segment-use {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.segment-info {
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
}

.segment-drop {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.segment-sell {
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
}

.segment-icon {
    font-size: 32px;
    color: white;
    margin-bottom: 5px;
    font-weight: 700;
}

.segment-label {
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Segoe UI', sans-serif;
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-family: 'Segoe UI', sans-serif;
}

.no-items::before {
    content: '📭';
    display: block;
    font-size: 64px;
    margin-bottom: 15px;
}

