* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.98) 0%, rgba(25, 25, 35, 0.98) 100%);
    border-radius: 15px;
    padding: 25px;
    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.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Performance optimization */
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(245, 73, 39, 0.3);
}

.logo {
    width: 50px;
    height: 50px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(245, 73, 39, 0.7));
    /* Performance */
    will-change: transform;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.header-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #F54927;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.btn-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #D32F2F;
    border-color: #D32F2F;
    transform: rotate(90deg);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 73, 39, 0.5);
}

.tab-btn.active {
    background: linear-gradient(135deg, #F54927 0%, #FF8C42 100%);
    border-color: #F54927;
    color: white;
}

.tab-icon {
    font-size: 20px;
}

.tab-label {
    font-size: 15px;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    margin-bottom: 20px;
}

.tab-header h2 {
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.tab-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Weapons Grid */
.weapons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.weapon-slot {
    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: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Performance */
    will-change: transform;
    transform: translateZ(0);
}

.weapon-slot:hover {
    border-color: #F54927;
    background: rgba(245, 73, 39, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 73, 39, 0.3);
}

.weapon-slot.locked {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.weapon-slot-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(245, 73, 39, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.weapon-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.weapon-name {
    color: white;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

.weapon-empty {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* Safe Grid */
.safe-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.safe-grid::-webkit-scrollbar {
    width: 6px;
}

.safe-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.safe-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F54927 0%, #FF8C42 100%);
    border-radius: 10px;
}

.safe-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #F54927;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.safe-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.safe-icon {
    font-size: 32px;
}

.safe-info {
    flex: 1;
}

.safe-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 3px;
}

.safe-amount {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.safe-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-deposit,
.btn-withdraw {
    padding: 8px 16px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.btn-deposit {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
}

.btn-deposit:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.4);
}

.btn-withdraw {
    background: linear-gradient(135deg, #F54927 0%, #FF8C42 100%);
}

.btn-withdraw:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(245, 73, 39, 0.4);
}

/* Info Box */
.info-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    font-size: 20px;
}

.info-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(30, 30, 45, 0.98) 100%);
    border-radius: 15px;
    padding: 25px;
    width: 450px;
    max-width: 90%;
    border: 2px solid rgba(245, 73, 39, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(245, 73, 39, 0.3);
}

.modal-header h2 {
    color: #F54927;
    font-size: 20px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #D32F2F;
    transform: rotate(90deg);
}

.modal-body {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #F54927;
    background: rgba(255, 255, 255, 0.08);
}

.input-group small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 5px;
}

.modal-footer {
    display: flex;
    gap: 10px;
}

.btn-confirm,
.btn-cancel-modal {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm {
    background: linear-gradient(135deg, #F54927 0%, #FF8C42 100%);
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 73, 39, 0.4);
}

.btn-cancel-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-cancel-modal:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Weapon List in Modal */
.weapon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.weapon-list-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weapon-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #F54927;
    transform: translateX(5px);
}

.weapon-list-item span {
    color: white;
    font-size: 14px;
}

.btn-select {
    background: linear-gradient(135deg, #F54927 0%, #FF8C42 100%);
    border: none;
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select:hover {
    transform: scale(1.05);
}

.btn-take {
    width: 100%;
    background: linear-gradient(135deg, #F54927 0%, #FF8C42 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-take:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 73, 39, 0.4);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(30, 30, 45, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-error {
    border-color: #D32F2F;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2) 0%, rgba(244, 67, 54, 0.2) 100%);
}

.notification-success {
    border-color: #00C853;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.2) 0%, rgba(0, 230, 118, 0.2) 100%);
}

.notification-info {
    border-color: #F54927;
    background: linear-gradient(135deg, rgba(245, 73, 39, 0.2) 0%, rgba(255, 140, 66, 0.2) 100%);
}

